#D1C54F#D1C54F

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

Color values

HEX#D1C54F
RGBrgb(209, 197, 79)
HSLhsl(54, 59%, 56%)
HSVhsv(54, 62%, 82%)
CMYKcmyk(0%, 5.7%, 62.2%, 18%)
CIE-LABlab(78.49, -10.03, 58.90)
CIE-LCHlch(78.49, 59.75, 99.66°)
OKLaboklab(81.12% -0.0323 0.1343)
OKLCHoklch(81.12% 0.138 103.5)
XYZxyz(47.6738, 54.0541, 15.3179)
Luminance0.5405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C54F #4F5BD1
analogous
#D1844F #D1C54F #9CD14F
triadic
#D1C54F #4FD1C5 #C54FD1
tetradic
#D1C54F #4FD184 #4F5BD1 #D14F9C
square
#D1C54F #4FD184 #4F5BD1 #D14F9C
split-complementary
#D1C54F #4F9CD1 #844FD1
monochromatic
#837A22 #B4A82F #D1C54F #DED580 #EAE5B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1C54F#FFFFFF#000000##000000
##D1C54F1.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)
#D5BF41
Deuteranopia (green-blind)
#D9C556
Tritanopia (blue-blind)
#E0B8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d1c54f;
/* rgb */ color: rgb(209, 197, 79);
/* oklch */ color: oklch(81.1% 0.138 103.5);
Tailwind
colors: {
  custom: {
    50: '#e2d685',
    500: '#d1c54f',
    950: '#000000',
  },
}
SCSS
$custom: #d1c54f;
$custom-light: #e2d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c54f",
  "rgb": {
    "r": 209,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 54.462,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81115,
    "c": 0.13813,
    "h": 103.5
  },
  "luminance": 0.54052
}

Semantic roles & 50–950 ramp

primary
#D1C54F
secondary
#3A418A
accent
#54E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C54F

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

Preview Lab → · Contrast checker → · Palette generator →

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