#D9C140#D9C140

#D9C140 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.146 H 98.4°. Best body text is #000000 at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#D9C140
RGBrgb(217, 193, 64)
HSLhsl(51, 67%, 55%)
HSVhsv(51, 71%, 85%)
CMYKcmyk(0%, 11.1%, 70.5%, 14.9%)
CIE-LABlab(78.03, -5.44, 64.74)
CIE-LCHlch(78.03, 64.97, 94.81°)
OKLaboklab(80.88% -0.0213 0.144)
OKLCHoklch(80.88% 0.146 98.4)
XYZxyz(48.6130, 53.2642, 12.5699)
Luminance0.5326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C140 #4058D9
analogous
#D97440 #D9C140 #A5D940
triadic
#D9C140 #40D9C1 #C140D9
tetradic
#D9C140 #40D974 #4058D9 #D940A5
square
#D9C140 #40D974 #4058D9 #D940A5
split-complementary
#D9C140 #40A5D9 #7440D9
monochromatic
#84741A #B7A024 #D9C140 #E3D273 #EDE2A6

Accessibility & contrast

On white

1.80
#D9C140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.65
#D9C140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C140
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C140#FFFFFF#000000##000000
##D9C1401.001.8011.6511.65
#FFFFFF1.801.0021.0021.00
#00000011.6521.001.001.00
##00000011.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#DAC548
Tritanopia (blue-blind)
#EAB3A7
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d9c140;
/* rgb */ color: rgb(217, 193, 64);
/* oklch */ color: oklch(80.9% 0.146 98.4);
Tailwind
colors: {
  custom: {
    50: '#e9d37d',
    500: '#d9c140',
    950: '#000000',
  },
}
SCSS
$custom: #d9c140;
$custom-light: #e9d37d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c140",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 50.588,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80878,
    "c": 0.14557,
    "h": 98.4
  },
  "luminance": 0.53262
}

Semantic roles & 50–950 ramp

primary
#D9C140
secondary
#32408B
accent
#59EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C140

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

Preview Lab → · Contrast checker → · Palette generator →

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