#D2CA42#D2CA42

#D2CA42 is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.1% C 0.152 H 106.0°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#D2CA42
RGBrgb(210, 202, 66)
HSLhsl(57, 62%, 54%)
HSVhsv(57, 69%, 82%)
CMYKcmyk(0%, 3.8%, 68.6%, 17.6%)
CIE-LABlab(79.81, -12.90, 65.54)
CIE-LCHlch(79.81, 66.80, 101.13°)
OKLaboklab(82.15% -0.0419 0.1463)
OKLCHoklch(82.15% 0.152 106)
XYZxyz(48.6841, 56.3378, 13.4630)
Luminance0.5634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CA42 #424AD2
analogous
#D28242 #D2CA42 #92D242
triadic
#D2CA42 #42D2CA #CA42D2
tetradic
#D2CA42 #42D282 #424AD2 #D24292
square
#D2CA42 #42D282 #424AD2 #D24292
split-complementary
#D2CA42 #4292D2 #8242D2
monochromatic
#7C771E #ADA629 #D2CA42 #DED873 #EAE6A5

Accessibility & contrast

On white

1.71
#D2CA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#D2CA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CA42
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CA42#FFFFFF#000000##000000
##D2CA421.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#DEC84B
Tritanopia (blue-blind)
#E1BDAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2ca42;
/* rgb */ color: rgb(210, 202, 66);
/* oklch */ color: oklch(82.1% 0.152 106.0);
Tailwind
colors: {
  custom: {
    50: '#e3d97e',
    500: '#d2ca42',
    950: '#000000',
  },
}
SCSS
$custom: #d2ca42;
$custom-light: #e3d97e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2ca42",
  "rgb": {
    "r": 210,
    "g": 202,
    "b": 66
  },
  "hsl": {
    "h": 56.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.82148,
    "c": 0.15216,
    "h": 106
  },
  "luminance": 0.56336
}

Semantic roles & 50–950 ramp

primary
#D2CA42
secondary
#343984
accent
#4CE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2CA42

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

Preview Lab → · Contrast checker → · Palette generator →

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