#D2CC3E#D2CC3E

#D2CC3E is a very light, vivid yellow. Relative luminance 0.572; OKLCH L 82.5% C 0.157 H 107.0°. Best body text is #000000 at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#D2CC3E
RGBrgb(210, 204, 62)
HSLhsl(58, 62%, 53%)
HSVhsv(58, 70%, 82%)
CMYKcmyk(0%, 2.9%, 70.5%, 17.6%)
CIE-LABlab(80.31, -14.11, 67.52)
CIE-LCHlch(80.31, 68.98, 101.80°)
OKLaboklab(82.54% -0.0457 0.1498)
OKLCHoklch(82.54% 0.157 107)
XYZxyz(49.0426, 57.2369, 13.0210)
Luminance0.5724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC3E #3E44D2
analogous
#D2823E #D2CC3E #8ED23E
triadic
#D2CC3E #3ED2CC #CC3ED2
tetradic
#D2CC3E #3ED282 #3E44D2 #D23E8E
square
#D2CC3E #3ED282 #3E44D2 #D23E8E
split-complementary
#D2CC3E #3E8ED2 #823ED2
monochromatic
#79761C #ABA628 #D2CC3E #DED970 #E9E6A1

Accessibility & contrast

On white

1.69
#D2CC3E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.45
#D2CC3E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC3E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC3E#FFFFFF#000000##000000
##D2CC3E1.001.6912.4512.45
#FFFFFF1.691.0021.0021.00
#00000012.4521.001.001.00
##00000012.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC426
Deuteranopia (green-blind)
#E0CA48
Tritanopia (blue-blind)
#E1BFB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d2cc3e;
/* rgb */ color: rgb(210, 204, 62);
/* oklch */ color: oklch(82.5% 0.157 107.0);
Tailwind
colors: {
  custom: {
    50: '#e3db7c',
    500: '#d2cc3e',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc3e;
$custom-light: #e3db7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc3e",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 62
  },
  "hsl": {
    "h": 57.568,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.82544,
    "c": 0.15658,
    "h": 107
  },
  "luminance": 0.57235
}

Semantic roles & 50–950 ramp

primary
#D2CC3E
secondary
#333681
accent
#49E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2CC3E

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

Preview Lab → · Contrast checker → · Palette generator →

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