#D2C451#D2C451

#D2C451 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.136 H 102.4°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#D2C451
RGBrgb(210, 196, 81)
HSLhsl(53, 59%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 6.7%, 61.4%, 17.6%)
CIE-LABlab(78.33, -8.97, 57.89)
CIE-LCHlch(78.33, 58.58, 98.81°)
OKLaboklab(81.01% -0.0291 0.1324)
OKLCHoklch(81.01% 0.136 102.4)
XYZxyz(47.8053, 53.7774, 15.6449)
Luminance0.5378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C451 #515FD2
analogous
#D28351 #D2C451 #A0D251
triadic
#D2C451 #51D2C4 #C451D2
tetradic
#D2C451 #51D283 #515FD2 #D251A0
square
#D2C451 #51D283 #515FD2 #D251A0
split-complementary
#D2C451 #51A0D2 #8351D2
monochromatic
#867B23 #B7A82F #D2C451 #DFD482 #EBE5B2

Accessibility & contrast

On white

1.79
#D2C451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#D2C451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C451
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C451#FFFFFF#000000##000000
##D2C4511.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE44
Deuteranopia (green-blind)
#D9C557
Tritanopia (blue-blind)
#E1B7AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c451;
/* rgb */ color: rgb(210, 196, 81);
/* oklch */ color: oklch(81.0% 0.136 102.4);
Tailwind
colors: {
  custom: {
    50: '#e3d586',
    500: '#d2c451',
    950: '#000000',
  },
}
SCSS
$custom: #d2c451;
$custom-light: #e3d586;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c451",
  "rgb": {
    "r": 210,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 53.488,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81013,
    "c": 0.13558,
    "h": 102.4
  },
  "luminance": 0.53776
}

Semantic roles & 50–950 ramp

primary
#D2C451
secondary
#3B438D
accent
#57E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C451

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

Preview Lab → · Contrast checker → · Palette generator →

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