#D2C54C#D2C54C

#D2C54C is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.2% C 0.140 H 103.2°. Best body text is #000000 at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#D2C54C
RGBrgb(210, 197, 76)
HSLhsl(54, 60%, 56%)
HSVhsv(54, 64%, 82%)
CMYKcmyk(0%, 6.2%, 63.8%, 17.6%)
CIE-LABlab(78.55, -9.80, 60.26)
CIE-LCHlch(78.55, 61.05, 99.24°)
OKLaboklab(81.18% -0.032 0.1367)
OKLCHoklch(81.18% 0.14 103.2)
XYZxyz(47.8510, 54.1578, 14.7690)
Luminance0.5416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C54C #4C59D2
analogous
#D2824C #D2C54C #9CD24C
triadic
#D2C54C #4CD2C5 #C54CD2
tetradic
#D2C54C #4CD282 #4C59D2 #D24C9C
square
#D2C54C #4CD282 #4C59D2 #D24C9C
split-complementary
#D2C54C #4C9CD2 #824CD2
monochromatic
#837921 #B4A72D #D2C54C #DED57D #EBE5AE

Accessibility & contrast

On white

1.77
#D2C54C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.83
#D2C54C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C54C
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C54C#FFFFFF#000000##000000
##D2C54C1.001.7711.8311.83
#FFFFFF1.771.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF3D
Deuteranopia (green-blind)
#DAC553
Tritanopia (blue-blind)
#E1B8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c54c;
/* rgb */ color: rgb(210, 197, 76);
/* oklch */ color: oklch(81.2% 0.140 103.2);
Tailwind
colors: {
  custom: {
    50: '#e3d684',
    500: '#d2c54c',
    950: '#000000',
  },
}
SCSS
$custom: #d2c54c;
$custom-light: #e3d684;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c54c",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 76
  },
  "hsl": {
    "h": 54.179,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81175,
    "c": 0.14043,
    "h": 103.2
  },
  "luminance": 0.54156
}

Semantic roles & 50–950 ramp

primary
#D2C54C
secondary
#38408A
accent
#54E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C54C

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

Preview Lab → · Contrast checker → · Palette generator →

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