#D2C54E#D2C54E

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

Color values

HEX#D2C54E
RGBrgb(210, 197, 78)
HSLhsl(54, 59%, 56%)
HSVhsv(54, 63%, 82%)
CMYKcmyk(0%, 6.2%, 62.9%, 17.6%)
CIE-LABlab(78.57, -9.67, 59.44)
CIE-LCHlch(78.57, 60.22, 99.24°)
OKLaboklab(81.19% -0.0314 0.1353)
OKLCHoklch(81.19% 0.139 103.1)
XYZxyz(47.9216, 54.1860, 15.1409)
Luminance0.5418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C54E #4E5BD2
analogous
#D2834E #D2C54E #9DD24E
triadic
#D2C54E #4ED2C5 #C54ED2
tetradic
#D2C54E #4ED283 #4E5BD2 #D24E9D
square
#D2C54E #4ED283 #4E5BD2 #D24E9D
split-complementary
#D2C54E #4E9DD2 #834ED2
monochromatic
#847A22 #B5A82E #D2C54E #DED57F #EBE5B0

Accessibility & contrast

On white

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

On black

11.84
#D2C54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C54E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C54E#FFFFFF#000000##000000
##D2C54E1.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c54e;
/* rgb */ color: rgb(210, 197, 78);
/* oklch */ color: oklch(81.2% 0.139 103.1);
Tailwind
colors: {
  custom: {
    50: '#e3d685',
    500: '#d2c54e',
    950: '#000000',
  },
}
SCSS
$custom: #d2c54e;
$custom-light: #e3d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c54e",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 54.091,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81194,
    "c": 0.13888,
    "h": 103.1
  },
  "luminance": 0.54184
}

Semantic roles & 50–950 ramp

primary
#D2C54E
secondary
#39418B
accent
#55E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C54E

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

Preview Lab → · Contrast checker → · Palette generator →

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