#D1C74F#D1C74F

#D1C74F is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.140 H 104.5°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#D1C74F
RGBrgb(209, 199, 79)
HSLhsl(55, 59%, 56%)
HSVhsv(55, 62%, 82%)
CMYKcmyk(0%, 4.8%, 62.2%, 18%)
CIE-LABlab(79.02, -11.05, 59.47)
CIE-LCHlch(79.02, 60.49, 100.52°)
OKLaboklab(81.54% -0.0352 0.1355)
OKLCHoklch(81.54% 0.14 104.5)
XYZxyz(48.1309, 54.9684, 15.4703)
Luminance0.5497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C74F #4F59D1
analogous
#D1864F #D1C74F #9AD14F
triadic
#D1C74F #4FD1C7 #C74FD1
tetradic
#D1C74F #4FD186 #4F59D1 #D14F9A
square
#D1C74F #4FD186 #4F59D1 #D14F9A
split-complementary
#D1C74F #4F9AD1 #864FD1
monochromatic
#837C22 #B4AA2F #D1C74F #DED680 #EAE6B0

Accessibility & contrast

On white

1.75
#D1C74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#D1C74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C74F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C74F#FFFFFF#000000##000000
##D1C74F1.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C041
Deuteranopia (green-blind)
#DBC656
Tritanopia (blue-blind)
#E0BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c74f;
/* rgb */ color: rgb(209, 199, 79);
/* oklch */ color: oklch(81.5% 0.140 104.5);
Tailwind
colors: {
  custom: {
    50: '#e2d785',
    500: '#d1c74f',
    950: '#000000',
  },
}
SCSS
$custom: #d1c74f;
$custom-light: #e2d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c74f",
  "rgb": {
    "r": 209,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 55.385,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81536,
    "c": 0.14001,
    "h": 104.5
  },
  "luminance": 0.54967
}

Semantic roles & 50–950 ramp

primary
#D1C74F
secondary
#3A408A
accent
#52E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C74F

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

Preview Lab → · Contrast checker → · Palette generator →

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