#D1C940#D1C940

#D1C940 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.8% C 0.153 H 106.0°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#D1C940
RGBrgb(209, 201, 64)
HSLhsl(57, 61%, 54%)
HSVhsv(57, 69%, 82%)
CMYKcmyk(0%, 3.8%, 69.4%, 18%)
CIE-LABlab(79.44, -12.92, 65.91)
CIE-LCHlch(79.44, 67.16, 101.09°)
OKLaboklab(81.84% -0.0421 0.1468)
OKLCHoklch(81.84% 0.153 106)
XYZxyz(48.1084, 55.7005, 13.0666)
Luminance0.5570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C940 #4048D1
analogous
#D18040 #D1C940 #90D140
triadic
#D1C940 #40D1C9 #C940D1
tetradic
#D1C940 #40D180 #4048D1 #D14090
square
#D1C940 #40D180 #4048D1 #D14090
split-complementary
#D1C940 #4090D1 #8040D1
monochromatic
#79741D #ABA429 #D1C940 #DDD771 #E9E5A3

Accessibility & contrast

On white

1.73
#D1C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#D1C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C940
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C940#FFFFFF#000000##000000
##D1C9401.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22A
Deuteranopia (green-blind)
#DDC749
Tritanopia (blue-blind)
#E0BCAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d1c940;
/* rgb */ color: rgb(209, 201, 64);
/* oklch */ color: oklch(81.8% 0.153 106.0);
Tailwind
colors: {
  custom: {
    50: '#e3d97d',
    500: '#d1c940',
    950: '#000000',
  },
}
SCSS
$custom: #d1c940;
$custom-light: #e3d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c940",
  "rgb": {
    "r": 209,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 56.69,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.81835,
    "c": 0.15266,
    "h": 106
  },
  "luminance": 0.55699
}

Semantic roles & 50–950 ramp

primary
#D1C940
secondary
#343881
accent
#4CE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1C940

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

Preview Lab → · Contrast checker → · Palette generator →

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