#D2C858#D2C858

#D2C858 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.133 H 104.2°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#D2C858
RGBrgb(210, 200, 88)
HSLhsl(55, 58%, 58%)
HSVhsv(55, 58%, 82%)
CMYKcmyk(0%, 4.8%, 58.1%, 17.6%)
CIE-LABlab(79.45, -10.53, 56.03)
CIE-LCHlch(79.45, 57.01, 100.64°)
OKLaboklab(81.92% -0.0327 0.1294)
OKLCHoklch(81.92% 0.133 104.2)
XYZxyz(48.9957, 55.7165, 17.4041)
Luminance0.5572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C858 #5862D2
analogous
#D28B58 #D2C858 #9FD258
triadic
#D2C858 #58D2C8 #C858D2
tetradic
#D2C858 #58D28B #5862D2 #D2589F
square
#D2C858 #58D28B #5862D2 #D2589F
split-complementary
#D2C858 #589FD2 #8B58D2
monochromatic
#8A8225 #BBAF32 #D2C858 #DFD888 #ECE8B8

Accessibility & contrast

On white

1.73
#D2C858 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#D2C858 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C858
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C858#FFFFFF#000000##000000
##D2C8581.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C24C
Deuteranopia (green-blind)
#DBC75E
Tritanopia (blue-blind)
#E0BCB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c858;
/* rgb */ color: rgb(210, 200, 88);
/* oklch */ color: oklch(81.9% 0.133 104.2);
Tailwind
colors: {
  custom: {
    50: '#e2d88b',
    500: '#d2c858',
    950: '#000000',
  },
}
SCSS
$custom: #d2c858;
$custom-light: #e2d88b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c858",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 88
  },
  "hsl": {
    "h": 55.082,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81923,
    "c": 0.13346,
    "h": 104.2
  },
  "luminance": 0.55715
}

Semantic roles & 50–950 ramp

primary
#D2C858
secondary
#3E4491
accent
#54E147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C858

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

Preview Lab → · Contrast checker → · Palette generator →

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