#D1C94F#D1C94F

#D1C94F is a light, vivid yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.142 H 105.6°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D1C94F
RGBrgb(209, 201, 79)
HSLhsl(56, 59%, 56%)
HSVhsv(56, 62%, 82%)
CMYKcmyk(0%, 3.8%, 62.2%, 18%)
CIE-LABlab(79.55, -12.06, 60.04)
CIE-LCHlch(79.55, 61.24, 101.36°)
OKLaboklab(81.96% -0.038 0.1367)
OKLCHoklch(81.96% 0.142 105.6)
XYZxyz(48.5941, 55.8948, 15.6247)
Luminance0.5589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C94F #4F57D1
analogous
#D1884F #D1C94F #98D14F
triadic
#D1C94F #4FD1C9 #C94FD1
tetradic
#D1C94F #4FD188 #4F57D1 #D14F98
square
#D1C94F #4FD188 #4F57D1 #D14F98
split-complementary
#D1C94F #4F98D1 #884FD1
monochromatic
#837D22 #B4AC2F #D1C94F #DED880 #EAE7B0

Accessibility & contrast

On white

1.72
#D1C94F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#D1C94F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C94F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C94F#FFFFFF#000000##000000
##D1C94F1.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C240
Deuteranopia (green-blind)
#DCC856
Tritanopia (blue-blind)
#E0BCAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d1c94f;
/* rgb */ color: rgb(209, 201, 79);
/* oklch */ color: oklch(82.0% 0.142 105.6);
Tailwind
colors: {
  custom: {
    50: '#e2d986',
    500: '#d1c94f',
    950: '#000000',
  },
}
SCSS
$custom: #d1c94f;
$custom-light: #e2d986;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c94f",
  "rgb": {
    "r": 209,
    "g": 201,
    "b": 79
  },
  "hsl": {
    "h": 56.308,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81959,
    "c": 0.14192,
    "h": 105.6
  },
  "luminance": 0.55893
}

Semantic roles & 50–950 ramp

primary
#D1C94F
secondary
#3A3F8A
accent
#50E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C94F

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

Preview Lab → · Contrast checker → · Palette generator →

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