#D9BA40#D9BA40

#D9BA40 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 79.4% C 0.141 H 94.5°. Best body text is #000000 at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#D9BA40
RGBrgb(217, 186, 64)
HSLhsl(48, 67%, 55%)
HSVhsv(48, 71%, 85%)
CMYKcmyk(0%, 14.3%, 70.5%, 14.9%)
CIE-LABlab(76.22, -1.82, 62.93)
CIE-LCHlch(76.22, 62.96, 91.65°)
OKLaboklab(79.44% -0.011 0.1402)
OKLCHoklch(79.44% 0.141 94.5)
XYZxyz(47.1020, 50.2423, 12.0663)
Luminance0.5024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9BA40 #405FD9
analogous
#D96D40 #D9BA40 #ACD940
triadic
#D9BA40 #40D9BA #BA40D9
tetradic
#D9BA40 #40D96D #405FD9 #D940AC
square
#D9BA40 #40D96D #405FD9 #D940AC
split-complementary
#D9BA40 #40ACD9 #6D40D9
monochromatic
#846F1A #B79A24 #D9BA40 #E3CC73 #EDDFA6

Accessibility & contrast

On white

1.90
#D9BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.05
#D9BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9BA40
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9BA40#FFFFFF#000000##000000
##D9BA401.001.9011.0511.05
#FFFFFF1.901.0021.0021.00
#00000011.0521.001.001.00
##00000011.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#D5C047
Tritanopia (blue-blind)
#EAACA1
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d9ba40;
/* rgb */ color: rgb(217, 186, 64);
/* oklch */ color: oklch(79.4% 0.141 94.5);
Tailwind
colors: {
  custom: {
    50: '#e9ce7c',
    500: '#d9ba40',
    950: '#000000',
  },
}
SCSS
$custom: #d9ba40;
$custom-light: #e9ce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d9ba40",
  "rgb": {
    "r": 217,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 47.843,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.79443,
    "c": 0.14061,
    "h": 94.5
  },
  "luminance": 0.5024
}

Semantic roles & 50–950 ramp

primary
#D9BA40
secondary
#32448B
accent
#61EA3E
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #D9BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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