#D2CC54#D2CC54

#D2CC54 is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.7% C 0.141 H 106.4°. Best body text is #000000 at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#D2CC54
RGBrgb(210, 204, 84)
HSLhsl(57, 58%, 58%)
HSVhsv(57, 60%, 82%)
CMYKcmyk(0%, 2.9%, 60%, 17.6%)
CIE-LABlab(80.48, -12.83, 58.92)
CIE-LCHlch(80.48, 60.30, 102.28°)
OKLaboklab(82.73% -0.0397 0.135)
OKLCHoklch(82.73% 0.141 106.4)
XYZxyz(49.7731, 57.5291, 16.8681)
Luminance0.5753 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC54 #545AD2
analogous
#D28D54 #D2CC54 #99D254
triadic
#D2CC54 #54D2CC #CC54D2
tetradic
#D2CC54 #54D28D #545AD2 #D25499
square
#D2CC54 #54D28D #545AD2 #D25499
split-complementary
#D2CC54 #5499D2 #8D54D2
monochromatic
#888324 #B8B231 #D2CC54 #DFDA84 #EBE9B5

Accessibility & contrast

On white

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

On black

12.51
#D2CC54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC54
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC54#FFFFFF#000000##000000
##D2CC541.001.6812.5112.51
#FFFFFF1.681.0021.0021.00
#00000012.5121.001.001.00
##00000012.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC546
Deuteranopia (green-blind)
#DFCA5B
Tritanopia (blue-blind)
#E0C0B2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cc54;
/* rgb */ color: rgb(210, 204, 84);
/* oklch */ color: oklch(82.7% 0.141 106.4);
Tailwind
colors: {
  custom: {
    50: '#e3db89',
    500: '#d2cc54',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc54;
$custom-light: #e3db89;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc54",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 84
  },
  "hsl": {
    "h": 57.143,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82726,
    "c": 0.14075,
    "h": 106.4
  },
  "luminance": 0.57527
}

Semantic roles & 50–950 ramp

primary
#D2CC54
secondary
#3C408E
accent
#4EE246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2CC54

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

Preview Lab → · Contrast checker → · Palette generator →

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