#D2C54D#D2C54D

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

Color values

HEX#D2C54D
RGBrgb(210, 197, 77)
HSLhsl(54, 60%, 56%)
HSVhsv(54, 63%, 82%)
CMYKcmyk(0%, 6.2%, 63.3%, 17.6%)
CIE-LABlab(78.56, -9.74, 59.85)
CIE-LCHlch(78.56, 60.64, 99.24°)
OKLaboklab(81.18% -0.0317 0.136)
OKLCHoklch(81.18% 0.14 103.1)
XYZxyz(47.8860, 54.1718, 14.9535)
Luminance0.5417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C54D #4D5AD2
analogous
#D2834D #D2C54D #9DD24D
triadic
#D2C54D #4DD2C5 #C54DD2
tetradic
#D2C54D #4DD283 #4D5AD2 #D24D9D
square
#D2C54D #4DD283 #4D5AD2 #D24D9D
split-complementary
#D2C54D #4D9DD2 #834DD2
monochromatic
#837A21 #B4A72E #D2C54D #DED57E #EBE5AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C54D#FFFFFF#000000##000000
##D2C54D1.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)
#D6BF3E
Deuteranopia (green-blind)
#DAC554
Tritanopia (blue-blind)
#E1B8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c54d;
/* rgb */ color: rgb(210, 197, 77);
/* oklch */ color: oklch(81.2% 0.140 103.1);
Tailwind
colors: {
  custom: {
    50: '#e3d684',
    500: '#d2c54d',
    950: '#000000',
  },
}
SCSS
$custom: #d2c54d;
$custom-light: #e3d684;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c54d",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 77
  },
  "hsl": {
    "h": 54.135,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81184,
    "c": 0.13966,
    "h": 103.1
  },
  "luminance": 0.5417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C54D

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

Preview Lab → · Contrast checker → · Palette generator →

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