#D9BF40#D9BF40

#D9BF40 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.5% C 0.144 H 97.3°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#D9BF40
RGBrgb(217, 191, 64)
HSLhsl(50, 67%, 55%)
HSVhsv(50, 71%, 85%)
CMYKcmyk(0%, 12%, 70.5%, 14.9%)
CIE-LABlab(77.51, -4.41, 64.22)
CIE-LCHlch(77.51, 64.37, 93.93°)
OKLaboklab(80.47% -0.0184 0.1429)
OKLCHoklch(80.47% 0.144 97.3)
XYZxyz(48.1738, 52.3859, 12.4235)
Luminance0.5238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9BF40 #405AD9
analogous
#D97340 #D9BF40 #A6D940
triadic
#D9BF40 #40D9BF #BF40D9
tetradic
#D9BF40 #40D973 #405AD9 #D940A6
square
#D9BF40 #40D973 #405AD9 #D940A6
split-complementary
#D9BF40 #40A6D9 #7340D9
monochromatic
#84721A #B79E24 #D9BF40 #E3D073 #EDE1A6

Accessibility & contrast

On white

1.83
#D9BF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.48
#D9BF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9BF40
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9BF40#FFFFFF#000000##000000
##D9BF401.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2D
Deuteranopia (green-blind)
#D9C347
Tritanopia (blue-blind)
#EAB1A6
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d9bf40;
/* rgb */ color: rgb(217, 191, 64);
/* oklch */ color: oklch(80.5% 0.144 97.3);
Tailwind
colors: {
  custom: {
    50: '#e9d17c',
    500: '#d9bf40',
    950: '#000000',
  },
}
SCSS
$custom: #d9bf40;
$custom-light: #e9d17c;
$custom-dark: #000000;
JSON
{
  "hex": "#d9bf40",
  "rgb": {
    "r": 217,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 49.804,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80466,
    "c": 0.14409,
    "h": 97.3
  },
  "luminance": 0.52383
}

Semantic roles & 50–950 ramp

primary
#D9BF40
secondary
#32418B
accent
#5BEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9BF40

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D9BF40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva