#D9C45F#D9C45F

#D9C45F is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.8% C 0.124 H 97.7°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#D9C45F
RGBrgb(217, 196, 95)
HSLhsl(50, 62%, 61%)
HSVhsv(50, 56%, 85%)
CMYKcmyk(0%, 9.7%, 56.2%, 14.9%)
CIE-LABlab(79.08, -5.05, 52.56)
CIE-LCHlch(79.08, 52.81, 95.49°)
OKLaboklab(81.79% -0.0167 0.1226)
OKLCHoklch(81.79% 0.124 97.7)
XYZxyz(50.4226, 55.0599, 18.7959)
Luminance0.5506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C45F #5F74D9
analogous
#D9875F #D9C45F #B1D95F
triadic
#D9C45F #5FD9C4 #C45FD9
tetradic
#D9C45F #5FD987 #5F74D9 #D95FB1
square
#D9C45F #5FD987 #5F74D9 #D95FB1
split-complementary
#D9C45F #5FB1D9 #875FD9
monochromatic
#998524 #CBB030 #D9C45F #E5D690 #F0E8C2

Accessibility & contrast

On white

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

On black

12.01
#D9C45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C45F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C45F#FFFFFF#000000##000000
##D9C45F1.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C055
Deuteranopia (green-blind)
#DAC764
Tritanopia (blue-blind)
#E8B7AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c45f;
/* rgb */ color: rgb(217, 196, 95);
/* oklch */ color: oklch(81.8% 0.124 97.7);
Tailwind
colors: {
  custom: {
    50: '#e7d58f',
    500: '#d9c45f',
    950: '#000000',
  },
}
SCSS
$custom: #d9c45f;
$custom-light: #e7d58f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c45f",
  "rgb": {
    "r": 217,
    "g": 196,
    "b": 95
  },
  "hsl": {
    "h": 49.672,
    "s": 61.616,
    "l": 61.176
  },
  "oklch": {
    "l": 0.81791,
    "c": 0.12374,
    "h": 97.7
  },
  "luminance": 0.55058
}

Semantic roles & 50–950 ramp

primary
#D9C45F
secondary
#3F4F9E
accent
#3AC91C
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D9C45F

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

Preview Lab → · Contrast checker → · Palette generator →

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