#D9C640#D9C640

#D9C640 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.150 H 101.0°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#D9C640
RGBrgb(217, 198, 64)
HSLhsl(53, 67%, 55%)
HSVhsv(53, 71%, 85%)
CMYKcmyk(0%, 8.8%, 70.5%, 14.9%)
CIE-LABlab(79.34, -8.01, 66.03)
CIE-LCHlch(79.34, 66.51, 96.92°)
OKLaboklab(81.91% -0.0286 0.1467)
OKLCHoklch(81.91% 0.15 101)
XYZxyz(49.7370, 55.5123, 12.9446)
Luminance0.5551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C640 #4053D9
analogous
#D97940 #D9C640 #9FD940
triadic
#D9C640 #40D9C6 #C640D9
tetradic
#D9C640 #40D979 #4053D9 #D9409F
square
#D9C640 #40D979 #4053D9 #D9409F
split-complementary
#D9C640 #409FD9 #7940D9
monochromatic
#84771A #B7A524 #D9C640 #E3D573 #EDE4A6

Accessibility & contrast

On white

1.74
#D9C640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#D9C640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C640
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C640#FFFFFF#000000##000000
##D9C6401.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DEC849
Tritanopia (blue-blind)
#E9B8AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c640;
/* rgb */ color: rgb(217, 198, 64);
/* oklch */ color: oklch(81.9% 0.150 101.0);
Tailwind
colors: {
  custom: {
    50: '#e9d67d',
    500: '#d9c640',
    950: '#000000',
  },
}
SCSS
$custom: #d9c640;
$custom-light: #e9d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c640",
  "rgb": {
    "r": 217,
    "g": 198,
    "b": 64
  },
  "hsl": {
    "h": 52.549,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81913,
    "c": 0.14951,
    "h": 101
  },
  "luminance": 0.5551
}

Semantic roles & 50–950 ramp

primary
#D9C640
secondary
#323D8B
accent
#53EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C640

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

Preview Lab → · Contrast checker → · Palette generator →

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