#D2C142#D2C142

#D2C142 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.3% C 0.144 H 101.6°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#D2C142
RGBrgb(210, 193, 66)
HSLhsl(53, 62%, 54%)
HSVhsv(53, 69%, 82%)
CMYKcmyk(0%, 8.1%, 68.6%, 17.6%)
CIE-LABlab(77.42, -8.32, 63.15)
CIE-LCHlch(77.42, 63.70, 97.51°)
OKLaboklab(80.25% -0.0289 0.1412)
OKLCHoklch(80.25% 0.144 101.6)
XYZxyz(46.6337, 52.2369, 12.7795)
Luminance0.5223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C142 #4253D2
analogous
#D27942 #D2C142 #9BD242
triadic
#D2C142 #42D2C1 #C142D2
tetradic
#D2C142 #42D279 #4253D2 #D2429B
square
#D2C142 #42D279 #4253D2 #D2429B
split-complementary
#D2C142 #429BD2 #7942D2
monochromatic
#7C711E #AD9E29 #D2C142 #DED173 #EAE1A5

Accessibility & contrast

On white

1.83
#D2C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#D2C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C142
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C142#FFFFFF#000000##000000
##D2C1421.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB30
Deuteranopia (green-blind)
#D8C24A
Tritanopia (blue-blind)
#E2B4A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c142;
/* rgb */ color: rgb(210, 193, 66);
/* oklch */ color: oklch(80.3% 0.144 101.6);
Tailwind
colors: {
  custom: {
    50: '#e3d37e',
    500: '#d2c142',
    950: '#000000',
  },
}
SCSS
$custom: #d2c142;
$custom-light: #e3d37e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c142",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 52.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.80252,
    "c": 0.14417,
    "h": 101.6
  },
  "luminance": 0.52235
}

Semantic roles & 50–950 ramp

primary
#D2C142
secondary
#343E84
accent
#56E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C142

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

Preview Lab → · Contrast checker → · Palette generator →

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