Skip to content

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.

Thistle#D8BFD8

Named after the thistle flower, the national emblem of Scotland: a pale grayish lilac (#d8bfd8).

Color codes for Thistle

Color codes for Thistle
CSS keywordthistle
HEX#D8BFD8
RGBrgb(216, 191, 216)
HSLhsl(300, 24%, 80%)
HWBhwb(300 75% 15%)
OKLCHoklch(83.3% 0.044 326)
CMYK (naive, no ICC profile)cmyk(0%, 12%, 0%, 15%)
Decimal14,204,888
Hue familyPurples 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on thistle12.36:1PassPassPassPass73.5
White text on thistle1.69:1FailFailFailFail−34.1
Thistle text on white1.69:1FailFailFailFail30.3
Thistle text on black12.36:1PassPassPassPass−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)

  1. 5%
    #dac2da
  2. 15%
    #dec9de
  3. 25%
    #e2cfe2
  4. 35%
    #e6d5e6
  5. 45%
    #eadcea
  6. 55%
    #ede2ed
  7. 65%
    #f1e9f1
  8. 75%
    #f5eff5
  9. 85%
    #f9f5f9
  10. 95%
    #fdfcfd

Shades (mixed with black)

  1. 5%
    #cdb5cd
  2. 15%
    #b8a2b8
  3. 25%
    #a28fa2
  4. 35%
    #8c7c8c
  5. 45%
    #776977
  6. 55%
    #615661
  7. 65%
    #4c434c
  8. 75%
    #363036
  9. 85%
    #201d20
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
silver#c0c0c05.1
lightsteelblue#b0c4de5.4
lightgray#d3d3d35.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
mauve-300#d7d0d74.5
zinc-300#d4d4d85.5
taupe-300#d8d2d05.5

Code snippets

CSS
.element {
  color: thistle;
  background-color: #d8bfd8;
  border-color: rgb(216 191 216);
  outline-color: oklch(83.3% 0.044 326);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let thistle = Color(red: 0.847, green: 0.749, blue: 0.847)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Thistle = Color(0xFFD8BFD8)
Flutter
import 'package:flutter/material.dart';

const thistle = Color(0xFFD8BFD8);
Android XML
<!-- 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.