#D2CC3F#D2CC3F

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

Color values

HEX#D2CC3F
RGBrgb(210, 204, 63)
HSLhsl(58, 62%, 54%)
HSVhsv(58, 70%, 82%)
CMYKcmyk(0%, 2.9%, 70%, 17.6%)
CIE-LABlab(80.32, -14.06, 67.17)
CIE-LCHlch(80.32, 68.62, 101.82°)
OKLaboklab(82.55% -0.0454 0.1492)
OKLCHoklch(82.55% 0.156 106.9)
XYZxyz(49.0703, 57.2479, 13.1668)
Luminance0.5725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC3F #3F45D2
analogous
#D2823F #D2CC3F #8ED23F
triadic
#D2CC3F #3FD2CC #CC3FD2
tetradic
#D2CC3F #3FD282 #3F45D2 #D23F8E
square
#D2CC3F #3FD282 #3F45D2 #D23F8E
split-complementary
#D2CC3F #3F8ED2 #823FD2
monochromatic
#7A761D #ACA628 #D2CC3F #DED971 #E9E6A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2CC3F#FFFFFF#000000##000000
##D2CC3F1.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)
#DDC427
Deuteranopia (green-blind)
#E0CA49
Tritanopia (blue-blind)
#E1BFB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d2cc3f;
/* rgb */ color: rgb(210, 204, 63);
/* oklch */ color: oklch(82.6% 0.156 106.9);
Tailwind
colors: {
  custom: {
    50: '#e3db7d',
    500: '#d2cc3f',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc3f;
$custom-light: #e3db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc3f",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 63
  },
  "hsl": {
    "h": 57.551,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82551,
    "c": 0.15596,
    "h": 106.9
  },
  "luminance": 0.57246
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2CC3F

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

Preview Lab → · Contrast checker → · Palette generator →

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