#D1C54E#D1C54E

#D1C54E is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.1% C 0.139 H 103.6°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#D1C54E
RGBrgb(209, 197, 78)
HSLhsl(55, 59%, 56%)
HSVhsv(55, 63%, 82%)
CMYKcmyk(0%, 5.7%, 62.7%, 18%)
CIE-LABlab(78.48, -10.09, 59.32)
CIE-LCHlch(78.48, 60.17, 99.66°)
OKLaboklab(81.11% -0.0326 0.1351)
OKLCHoklch(81.11% 0.139 103.6)
XYZxyz(47.6377, 54.0397, 15.1276)
Luminance0.5404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C54E #4E5AD1
analogous
#D1844E #D1C54E #9CD14E
triadic
#D1C54E #4ED1C5 #C54ED1
tetradic
#D1C54E #4ED184 #4E5AD1 #D14E9C
square
#D1C54E #4ED184 #4E5AD1 #D14E9C
split-complementary
#D1C54E #4E9CD1 #844ED1
monochromatic
#837A22 #B3A72F #D1C54E #DED57F #EAE5AF

Accessibility & contrast

On white

1.78
#D1C54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#D1C54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C54E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C54E#FFFFFF#000000##000000
##D1C54E1.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF40
Deuteranopia (green-blind)
#D9C555
Tritanopia (blue-blind)
#E0B8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d1c54e;
/* rgb */ color: rgb(209, 197, 78);
/* oklch */ color: oklch(81.1% 0.139 103.6);
Tailwind
colors: {
  custom: {
    50: '#e2d685',
    500: '#d1c54e',
    950: '#000000',
  },
}
SCSS
$custom: #d1c54e;
$custom-light: #e2d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c54e",
  "rgb": {
    "r": 209,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 54.504,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81106,
    "c": 0.13892,
    "h": 103.6
  },
  "luminance": 0.54038
}

Semantic roles & 50–950 ramp

primary
#D1C54E
secondary
#39418A
accent
#54E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C54E

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

Preview Lab → · Contrast checker → · Palette generator →

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