CSS named color
Thistle #D8BFD8
Thistle (CSS keyword thistle) has the hex code #D8BFD8 and the RGB value rgb(216, 191, 216): a very light, muted magenta.
Named after the thistle flower, the national emblem of Scotland: a pale grayish lilac (#d8bfd8).
Color codes for Thistle
| CSS keyword | thistle |
|---|---|
| HEX | #D8BFD8 |
| RGB | rgb(216, 191, 216) |
| HSL | hsl(300, 24%, 80%) |
| HWB | hwb(300 75% 15%) |
| OKLCH | oklch(83.3% 0.044 326) |
| CMYK (naive, no ICC profile) | cmyk(0%, 12%, 0%, 15%) |
| Decimal | 14,204,888 |
| Hue family | Purples and violets |
Contrast and accessibility
On thistle, black text has a contrast ratio of 12.36:1 and passes AAA at any text size; white text reaches 1.69:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on thistle | 12.36:1 | Pass | Pass | Pass | Pass | 73.5 |
| White text on thistle | 1.69:1 | Fail | Fail | Fail | Fail | −34.1 |
| Thistle text on white | 1.69:1 | Fail | Fail | Fail | Fail | 30.3 |
| Thistle text on black | 12.36:1 | Pass | Pass | Pass | Pass | −72.5 |
Tints and shades
Each step mixes thistle with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, thistle, white 25%) in CSS.
Tints (mixed with white)
- 5%
#dac2da - 15%
#dec9de - 25%
#e2cfe2 - 35%
#e6d5e6 - 45%
#eadcea - 55%
#ede2ed - 65%
#f1e9f1 - 75%
#f5eff5 - 85%
#f9f5f9 - 95%
#fdfcfd
Shades (mixed with black)
- 5%
#cdb5cd - 15%
#b8a2b8 - 25%
#a28fa2 - 35%
#8c7c8c - 45%
#776977 - 55%
#615661 - 65%
#4c434c - 75%
#363036 - 85%
#201d20 - 95%
#0b0a0b
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, thistle's complementary color is #B7D1B8 (close to silver), its analogous colors are #CAC3E2 and #E1BDC9, and its triadic partners are #D5C7A9 and #A8D1D6. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #b7d1b8 |
| Analogous | −30°, +30° | #cac3e2#e1bdc9 |
| Triadic | +120°, +240° | #d5c7a9#a8d1d6 |
| Split-complementary | +150°, +210° | #c6ccac#abd2c7 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Thistle sits on the boundary: its hue of 300° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
.element {
color: thistle;
background-color: #d8bfd8;
border-color: rgb(216 191 216);
outline-color: oklch(83.3% 0.044 326);
}<div class="bg-[#d8bfd8] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-thistle: #d8bfd8;
}
/* then use bg-thistle, text-thistle, border-thistle */import SwiftUI
extension Color {
static let thistle = Color(red: 0.847, green: 0.749, blue: 0.847)
}import androidx.compose.ui.graphics.Color
val Thistle = Color(0xFFD8BFD8)import 'package:flutter/material.dart';
const thistle = Color(0xFFD8BFD8);<!-- res/values/colors.xml -->
<color name="thistle">#D8BFD8</color>Frequently asked questions
- What is the hex code for thistle?
- The hex code for thistle is #D8BFD8. The same color is rgb(216, 191, 216), hsl(300, 24%, 80%) and oklch(83.3% 0.044 326), and in CSS you can also write the keyword thistle directly.
- Is thistle a warm or cool color?
- Thistle sits on the boundary: its hue of 300° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
- What colors go with thistle?
- Rotating the hue in OKLCH while keeping lightness and chroma, thistle's complementary color is #B7D1B8 (close to silver), its analogous colors are #CAC3E2 and #E1BDC9, and its triadic partners are #D5C7A9 and #A8D1D6. For text on top, black gives the higher contrast.
- Can you use white text on thistle?
- White text on thistle has a contrast ratio of 1.69:1, which fails AA even for large text under WCAG 2.2. Black text reaches 12.36:1 and passes both AA and AAA. In APCA terms that is Lc −34.1 for white and Lc 73.5 for black.
- What is the RGB value of thistle?
- Thistle is rgb(216, 191, 216): red 216, green 191 and blue 216 on the 0 to 255 scale, or 84.7%, 74.9% and 84.7%. As a decimal integer it is 14204888.
Last reviewed by Arielton Oberek.