#D2C742#D2C742

#D2C742 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.5% C 0.149 H 104.6°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#D2C742
RGBrgb(210, 199, 66)
HSLhsl(55, 62%, 54%)
HSVhsv(55, 69%, 82%)
CMYKcmyk(0%, 5.2%, 68.6%, 17.6%)
CIE-LABlab(79.01, -11.38, 64.75)
CIE-LCHlch(79.01, 65.74, 99.97°)
OKLaboklab(81.51% -0.0376 0.1446)
OKLCHoklch(81.51% 0.149 104.6)
XYZxyz(47.9871, 54.9437, 13.2307)
Luminance0.5494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C742 #424DD2
analogous
#D27F42 #D2C742 #95D242
triadic
#D2C742 #42D2C7 #C742D2
tetradic
#D2C742 #42D27F #424DD2 #D24295
square
#D2C742 #42D27F #424DD2 #D24295
split-complementary
#D2C742 #4295D2 #7F42D2
monochromatic
#7C751E #ADA329 #D2C742 #DED673 #EAE4A5

Accessibility & contrast

On white

1.75
#D2C742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#D2C742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C742
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C742#FFFFFF#000000##000000
##D2C7421.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02E
Deuteranopia (green-blind)
#DCC64B
Tritanopia (blue-blind)
#E1BAAC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c742;
/* rgb */ color: rgb(210, 199, 66);
/* oklch */ color: oklch(81.5% 0.149 104.6);
Tailwind
colors: {
  custom: {
    50: '#e3d77e',
    500: '#d2c742',
    950: '#000000',
  },
}
SCSS
$custom: #d2c742;
$custom-light: #e3d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c742",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 55.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81514,
    "c": 0.14941,
    "h": 104.6
  },
  "luminance": 0.54942
}

Semantic roles & 50–950 ramp

primary
#D2C742
secondary
#343A84
accent
#4FE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C742

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

Preview Lab → · Contrast checker → · Palette generator →

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