#D9C258#D9C258

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

Color values

HEX#D9C258
RGBrgb(217, 194, 88)
HSLhsl(49, 63%, 60%)
HSVhsv(49, 59%, 85%)
CMYKcmyk(0%, 10.6%, 59.4%, 14.9%)
CIE-LABlab(78.49, -4.53, 55.12)
CIE-LCHlch(78.49, 55.30, 94.70°)
OKLaboklab(81.3% -0.016 0.1273)
OKLCHoklch(81.3% 0.128 97.2)
XYZxyz(49.6705, 54.0421, 17.0455)
Luminance0.5404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C258 #586FD9
analogous
#D98158 #D9C258 #B0D958
triadic
#D9C258 #58D9C2 #C258D9
tetradic
#D9C258 #58D981 #586FD9 #D958B0
square
#D9C258 #58D981 #586FD9 #D958B0
split-complementary
#D9C258 #58B0D9 #8158D9
monochromatic
#958022 #C7AB2D #D9C258 #E4D48A #F0E6BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9C258#FFFFFF#000000##000000
##D9C2581.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)
#D3BE4D
Deuteranopia (green-blind)
#D9C65D
Tritanopia (blue-blind)
#E9B5AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c258;
/* rgb */ color: rgb(217, 194, 88);
/* oklch */ color: oklch(81.3% 0.128 97.2);
Tailwind
colors: {
  custom: {
    50: '#e8d48b',
    500: '#d9c258',
    950: '#000000',
  },
}
SCSS
$custom: #d9c258;
$custom-light: #e8d48b;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c258",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 88
  },
  "hsl": {
    "h": 49.302,
    "s": 62.927,
    "l": 59.804
  },
  "oklch": {
    "l": 0.81302,
    "c": 0.12827,
    "h": 97.2
  },
  "luminance": 0.5404
}

Semantic roles & 50–950 ramp

primary
#D9C258
secondary
#3C4C9A
accent
#5FE642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C258

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

Preview Lab → · Contrast checker → · Palette generator →

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