#D1C640#D1C640

#D1C640 is a light, vivid yellow. Relative luminance 0.543; OKLCH L 81.2% C 0.150 H 104.6°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#D1C640
RGBrgb(209, 198, 64)
HSLhsl(55, 61%, 54%)
HSVhsv(55, 69%, 82%)
CMYKcmyk(0%, 5.3%, 69.4%, 18%)
CIE-LABlab(78.65, -11.40, 65.12)
CIE-LCHlch(78.65, 66.11, 99.93°)
OKLaboklab(81.2% -0.0378 0.1451)
OKLCHoklch(81.2% 0.15 104.6)
XYZxyz(47.4159, 54.3155, 12.8358)
Luminance0.5431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C640 #404BD1
analogous
#D17D40 #D1C640 #93D140
triadic
#D1C640 #40D1C6 #C640D1
tetradic
#D1C640 #40D17D #404BD1 #D14093
square
#D1C640 #40D17D #404BD1 #D14093
split-complementary
#D1C640 #4093D1 #7D40D1
monochromatic
#79721D #ABA129 #D1C640 #DDD571 #E9E3A3

Accessibility & contrast

On white

1.77
#D1C640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.86
#D1C640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C640
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C640#FFFFFF#000000##000000
##D1C6401.001.7711.8611.86
#FFFFFF1.771.0021.0021.00
#00000011.8621.001.001.00
##00000011.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DBC549
Tritanopia (blue-blind)
#E0B9AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d1c640;
/* rgb */ color: rgb(209, 198, 64);
/* oklch */ color: oklch(81.2% 0.150 104.6);
Tailwind
colors: {
  custom: {
    50: '#e3d77d',
    500: '#d1c640',
    950: '#000000',
  },
}
SCSS
$custom: #d1c640;
$custom-light: #e3d77d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c640",
  "rgb": {
    "r": 209,
    "g": 198,
    "b": 64
  },
  "hsl": {
    "h": 55.448,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.812,
    "c": 0.14992,
    "h": 104.6
  },
  "luminance": 0.54314
}

Semantic roles & 50–950 ramp

primary
#D1C640
secondary
#343A81
accent
#50E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1C640

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

Preview Lab → · Contrast checker → · Palette generator →

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