#D2C040#D2C040

#D2C040 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.145 H 101.1°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#D2C040
RGBrgb(210, 192, 64)
HSLhsl(53, 62%, 54%)
HSVhsv(53, 70%, 82%)
CMYKcmyk(0%, 8.6%, 69.5%, 17.6%)
CIE-LABlab(77.14, -7.92, 63.65)
CIE-LCHlch(77.14, 64.14, 97.09°)
OKLaboklab(80.03% -0.028 0.142)
OKLCHoklch(80.03% 0.145 101.1)
XYZxyz(46.3554, 51.7731, 12.4010)
Luminance0.5177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C040 #4052D2
analogous
#D27740 #D2C040 #9BD240
triadic
#D2C040 #40D2C0 #C040D2
tetradic
#D2C040 #40D277 #4052D2 #D2409B
square
#D2C040 #40D277 #4052D2 #D2409B
split-complementary
#D2C040 #409BD2 #7740D2
monochromatic
#7B6F1D #AC9C29 #D2C040 #DED072 #E9E1A3

Accessibility & contrast

On white

1.85
#D2C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#D2C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C040
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C040#FFFFFF#000000##000000
##D2C0401.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA2D
Deuteranopia (green-blind)
#D7C248
Tritanopia (blue-blind)
#E2B2A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d2c040;
/* rgb */ color: rgb(210, 192, 64);
/* oklch */ color: oklch(80.0% 0.145 101.1);
Tailwind
colors: {
  custom: {
    50: '#e3d27c',
    500: '#d2c040',
    950: '#000000',
  },
}
SCSS
$custom: #d2c040;
$custom-light: #e3d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c040",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 52.603,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.80028,
    "c": 0.14468,
    "h": 101.1
  },
  "luminance": 0.51771
}

Semantic roles & 50–950 ramp

primary
#D2C040
secondary
#343D83
accent
#57E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C040

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

Preview Lab → · Contrast checker → · Palette generator →

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