#D1C74E#D1C74E

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

Color values

HEX#D1C74E
RGBrgb(209, 199, 78)
HSLhsl(55, 59%, 56%)
HSVhsv(55, 63%, 82%)
CMYKcmyk(0%, 4.8%, 62.7%, 18%)
CIE-LABlab(79.01, -11.11, 59.89)
CIE-LCHlch(79.01, 60.91, 100.51°)
OKLaboklab(81.53% -0.0355 0.1363)
OKLCHoklch(81.53% 0.141 104.6)
XYZxyz(48.0948, 54.9539, 15.2800)
Luminance0.5495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C74E #4E58D1
analogous
#D1864E #D1C74E #9AD14E
triadic
#D1C74E #4ED1C7 #C74ED1
tetradic
#D1C74E #4ED186 #4E58D1 #D14E9A
square
#D1C74E #4ED186 #4E58D1 #D14E9A
split-complementary
#D1C74E #4E9AD1 #864ED1
monochromatic
#837B22 #B3A92F #D1C74E #DED67F #EAE6AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1C74E#FFFFFF#000000##000000
##D1C74E1.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)
#D7C03F
Deuteranopia (green-blind)
#DBC655
Tritanopia (blue-blind)
#E0BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c74e;
/* rgb */ color: rgb(209, 199, 78);
/* oklch */ color: oklch(81.5% 0.141 104.6);
Tailwind
colors: {
  custom: {
    50: '#e2d785',
    500: '#d1c74e',
    950: '#000000',
  },
}
SCSS
$custom: #d1c74e;
$custom-light: #e2d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c74e",
  "rgb": {
    "r": 209,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 55.42,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81527,
    "c": 0.14079,
    "h": 104.6
  },
  "luminance": 0.54952
}

Semantic roles & 50–950 ramp

primary
#D1C74E
secondary
#39408A
accent
#52E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C74E

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

Preview Lab → · Contrast checker → · Palette generator →

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