#D2C054#D2C054

#D2C054 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.2% C 0.130 H 99.9°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#D2C054
RGBrgb(210, 192, 84)
HSLhsl(51, 58%, 58%)
HSVhsv(51, 60%, 82%)
CMYKcmyk(0%, 8.6%, 60%, 17.6%)
CIE-LABlab(77.31, -6.71, 55.44)
CIE-LCHlch(77.31, 55.84, 96.90°)
OKLaboklab(80.21% -0.0223 0.1276)
OKLCHoklch(80.21% 0.13 99.9)
XYZxyz(47.0300, 52.0430, 15.9538)
Luminance0.5204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C054 #5466D2
analogous
#D28154 #D2C054 #A5D254
triadic
#D2C054 #54D2C0 #C054D2
tetradic
#D2C054 #54D281 #5466D2 #D254A5
square
#D2C054 #54D281 #5466D2 #D254A5
split-complementary
#D2C054 #54A5D2 #8154D2
monochromatic
#887A24 #B8A531 #D2C054 #DFD284 #EBE4B5

Accessibility & contrast

On white

1.84
#D2C054 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#D2C054 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C054
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C054#FFFFFF#000000##000000
##D2C0541.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB48
Deuteranopia (green-blind)
#D6C259
Tritanopia (blue-blind)
#E1B3A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c054;
/* rgb */ color: rgb(210, 192, 84);
/* oklch */ color: oklch(80.2% 0.130 99.9);
Tailwind
colors: {
  custom: {
    50: '#e3d288',
    500: '#d2c054',
    950: '#000000',
  },
}
SCSS
$custom: #d2c054;
$custom-light: #e3d288;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c054",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 84
  },
  "hsl": {
    "h": 51.429,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80208,
    "c": 0.12953,
    "h": 99.9
  },
  "luminance": 0.52041
}

Semantic roles & 50–950 ramp

primary
#D2C054
secondary
#3C488E
accent
#5CE246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C054

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

Preview Lab → · Contrast checker → · Palette generator →

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