#D9C255#D9C255

#D9C255 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.3% C 0.131 H 97.4°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#D9C255
RGBrgb(217, 194, 85)
HSLhsl(50, 63%, 59%)
HSVhsv(50, 61%, 85%)
CMYKcmyk(0%, 10.6%, 60.8%, 14.9%)
CIE-LABlab(78.46, -4.74, 56.44)
CIE-LCHlch(78.46, 56.64, 94.80°)
OKLaboklab(81.27% -0.0169 0.1297)
OKLCHoklch(81.27% 0.131 97.4)
XYZxyz(49.5488, 53.9934, 16.4044)
Luminance0.5399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C255 #556CD9
analogous
#D98055 #D9C255 #AED955
triadic
#D9C255 #55D9C2 #C255D9
tetradic
#D9C255 #55D980 #556CD9 #D955AE
square
#D9C255 #55D980 #556CD9 #D955AE
split-complementary
#D9C255 #55AED9 #8055D9
monochromatic
#937F21 #C5AA2C #D9C255 #E4D487 #EFE6B9

Accessibility & contrast

On white

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

On black

11.80
#D9C255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C255
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C255#FFFFFF#000000##000000
##D9C2551.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE49
Deuteranopia (green-blind)
#DAC55A
Tritanopia (blue-blind)
#E9B5AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c255;
/* rgb */ color: rgb(217, 194, 85);
/* oklch */ color: oklch(81.3% 0.131 97.4);
Tailwind
colors: {
  custom: {
    50: '#e8d489',
    500: '#d9c255',
    950: '#000000',
  },
}
SCSS
$custom: #d9c255;
$custom-light: #e8d489;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c255",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 85
  },
  "hsl": {
    "h": 49.545,
    "s": 63.462,
    "l": 59.216
  },
  "oklch": {
    "l": 0.8127,
    "c": 0.1308,
    "h": 97.4
  },
  "luminance": 0.53991
}

Semantic roles & 50–950 ramp

primary
#D9C255
secondary
#3A4B98
accent
#5EE641
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C255

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

Preview Lab → · Contrast checker → · Palette generator →

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