#D2C057#D2C057

#D2C057 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.127 H 99.7°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#D2C057
RGBrgb(210, 192, 87)
HSLhsl(51, 58%, 58%)
HSVhsv(51, 59%, 82%)
CMYKcmyk(0%, 8.6%, 58.6%, 17.6%)
CIE-LABlab(77.34, -6.50, 54.11)
CIE-LCHlch(77.34, 54.50, 96.85°)
OKLaboklab(80.24% -0.0213 0.1252)
OKLCHoklch(80.24% 0.127 99.7)
XYZxyz(47.1501, 52.0910, 16.5859)
Luminance0.5209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C057 #5769D2
analogous
#D28357 #D2C057 #A6D257
triadic
#D2C057 #57D2C0 #C057D2
tetradic
#D2C057 #57D283 #5769D2 #D257A6
square
#D2C057 #57D283 #5769D2 #D257A6
split-complementary
#D2C057 #57A6D2 #8357D2
monochromatic
#8A7B25 #BAA632 #D2C057 #DFD287 #ECE4B8

Accessibility & contrast

On white

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

On black

11.42
#D2C057 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C057
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C057#FFFFFF#000000##000000
##D2C0571.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4C
Deuteranopia (green-blind)
#D5C25C
Tritanopia (blue-blind)
#E1B4A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c057;
/* rgb */ color: rgb(210, 192, 87);
/* oklch */ color: oklch(80.2% 0.127 99.7);
Tailwind
colors: {
  custom: {
    50: '#e3d28a',
    500: '#d2c057',
    950: '#000000',
  },
}
SCSS
$custom: #d2c057;
$custom-light: #e3d28a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c057",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 87
  },
  "hsl": {
    "h": 51.22,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.8024,
    "c": 0.12696,
    "h": 99.7
  },
  "luminance": 0.52089
}

Semantic roles & 50–950 ramp

primary
#D2C057
secondary
#3D4990
accent
#5DE147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C057

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

Preview Lab → · Contrast checker → · Palette generator →

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