#D2C54A#D2C54A

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

Color values

HEX#D2C54A
RGBrgb(210, 197, 74)
HSLhsl(54, 60%, 56%)
HSVhsv(54, 65%, 82%)
CMYKcmyk(0%, 6.2%, 64.8%, 17.6%)
CIE-LABlab(78.54, -9.92, 61.08)
CIE-LCHlch(78.54, 61.88, 99.23°)
OKLaboklab(81.16% -0.0326 0.1382)
OKLCHoklch(81.16% 0.142 103.3)
XYZxyz(47.7825, 54.1304, 14.4085)
Luminance0.5413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C54A #4A57D2
analogous
#D2814A #D2C54A #9BD24A
triadic
#D2C54A #4AD2C5 #C54AD2
tetradic
#D2C54A #4AD281 #4A57D2 #D24A9B
square
#D2C54A #4AD281 #4A57D2 #D24A9B
split-complementary
#D2C54A #4A9BD2 #814AD2
monochromatic
#817820 #B2A62C #D2C54A #DED57B #EAE4AC

Accessibility & contrast

On white

1.78
#D2C54A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C54A#FFFFFF#000000##000000
##D2C54A1.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF3A
Deuteranopia (green-blind)
#DAC551
Tritanopia (blue-blind)
#E1B8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c54a;
/* rgb */ color: rgb(210, 197, 74);
/* oklch */ color: oklch(81.2% 0.142 103.3);
Tailwind
colors: {
  custom: {
    50: '#e3d682',
    500: '#d2c54a',
    950: '#000000',
  },
}
SCSS
$custom: #d2c54a;
$custom-light: #e3d682;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c54a",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 74
  },
  "hsl": {
    "h": 54.265,
    "s": 60.177,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81158,
    "c": 0.14194,
    "h": 103.3
  },
  "luminance": 0.54129
}

Semantic roles & 50–950 ramp

primary
#D2C54A
secondary
#383F89
accent
#54E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C54A

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

Preview Lab → · Contrast checker → · Palette generator →

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