#D2C54B#D2C54B

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

Color values

HEX#D2C54B
RGBrgb(210, 197, 75)
HSLhsl(54, 60%, 56%)
HSVhsv(54, 64%, 82%)
CMYKcmyk(0%, 6.2%, 64.3%, 17.6%)
CIE-LABlab(78.55, -9.86, 60.67)
CIE-LCHlch(78.55, 61.47, 99.23°)
OKLaboklab(81.17% -0.0323 0.1375)
OKLCHoklch(81.17% 0.141 103.2)
XYZxyz(47.8165, 54.1440, 14.5874)
Luminance0.5414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C54B #4B58D2
analogous
#D2814B #D2C54B #9BD24B
triadic
#D2C54B #4BD2C5 #C54BD2
tetradic
#D2C54B #4BD281 #4B58D2 #D24B9B
square
#D2C54B #4BD281 #4B58D2 #D24B9B
split-complementary
#D2C54B #4B9BD2 #814BD2
monochromatic
#827921 #B3A62D #D2C54B #DED57C #EAE5AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C54B#FFFFFF#000000##000000
##D2C54B1.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)
#D6BF3C
Deuteranopia (green-blind)
#DAC552
Tritanopia (blue-blind)
#E1B8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c54b;
/* rgb */ color: rgb(210, 197, 75);
/* oklch */ color: oklch(81.2% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#e3d683',
    500: '#d2c54b',
    950: '#000000',
  },
}
SCSS
$custom: #d2c54b;
$custom-light: #e3d683;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c54b",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 54.222,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81166,
    "c": 0.14119,
    "h": 103.2
  },
  "luminance": 0.54142
}

Semantic roles & 50–950 ramp

primary
#D2C54B
secondary
#384089
accent
#54E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C54B

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

Preview Lab → · Contrast checker → · Palette generator →

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