#D2CC45#D2CC45

#D2CC45 is a very light, vivid yellow. Relative luminance 0.573; OKLCH L 82.6% C 0.152 H 106.8°. Best body text is #000000 at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#D2CC45
RGBrgb(210, 204, 69)
HSLhsl(57, 61%, 55%)
HSVhsv(57, 67%, 82%)
CMYKcmyk(0%, 2.9%, 67.1%, 17.6%)
CIE-LABlab(80.36, -13.75, 64.95)
CIE-LCHlch(80.36, 66.39, 101.95°)
OKLaboklab(82.6% -0.0439 0.1455)
OKLCHoklch(82.6% 0.152 106.8)
XYZxyz(49.2472, 57.3187, 14.0985)
Luminance0.5732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC45 #454BD2
analogous
#D28645 #D2CC45 #91D245
triadic
#D2CC45 #45D2CC #CC45D2
tetradic
#D2CC45 #45D286 #454BD2 #D24591
square
#D2CC45 #45D286 #454BD2 #D24591
split-complementary
#D2CC45 #4591D2 #8645D2
monochromatic
#7E7A1F #AFAA2A #D2CC45 #DEDA76 #EAE7A8

Accessibility & contrast

On white

1.68
#D2CC45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.46
#D2CC45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC45
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC45#FFFFFF#000000##000000
##D2CC451.001.6812.4612.46
#FFFFFF1.681.0021.0021.00
#00000012.4621.001.001.00
##00000012.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC431
Deuteranopia (green-blind)
#E0CA4E
Tritanopia (blue-blind)
#E1BFB1
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d2cc45;
/* rgb */ color: rgb(210, 204, 69);
/* oklch */ color: oklch(82.6% 0.152 106.8);
Tailwind
colors: {
  custom: {
    50: '#e3db80',
    500: '#d2cc45',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc45;
$custom-light: #e3db80;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc45",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 69
  },
  "hsl": {
    "h": 57.447,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.82595,
    "c": 0.15203,
    "h": 106.8
  },
  "luminance": 0.57317
}

Semantic roles & 50–950 ramp

primary
#D2CC45
secondary
#363986
accent
#4AE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2CC45

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

Preview Lab → · Contrast checker → · Palette generator →

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