#D2C258#D2C258

#D2C258 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.128 H 100.8°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#D2C258
RGBrgb(210, 194, 88)
HSLhsl(52, 58%, 58%)
HSVhsv(52, 58%, 82%)
CMYKcmyk(0%, 7.6%, 58.1%, 17.6%)
CIE-LABlab(77.87, -7.46, 54.26)
CIE-LCHlch(77.87, 54.77, 97.83°)
OKLaboklab(80.67% -0.024 0.1256)
OKLCHoklch(80.67% 0.128 100.8)
XYZxyz(47.6333, 52.9917, 16.9500)
Luminance0.5299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C258 #5868D2
analogous
#D28558 #D2C258 #A5D258
triadic
#D2C258 #58D2C2 #C258D2
tetradic
#D2C258 #58D285 #5868D2 #D258A5
square
#D2C258 #58D285 #5868D2 #D258A5
split-complementary
#D2C258 #58A5D2 #8558D2
monochromatic
#8A7D25 #BBA932 #D2C258 #DFD488 #ECE5B8

Accessibility & contrast

On white

1.81
#D2C258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.60
#D2C258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C258
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C258#FFFFFF#000000##000000
##D2C2581.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BD4D
Deuteranopia (green-blind)
#D7C35D
Tritanopia (blue-blind)
#E1B6AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d2c258;
/* rgb */ color: rgb(210, 194, 88);
/* oklch */ color: oklch(80.7% 0.128 100.8);
Tailwind
colors: {
  custom: {
    50: '#e2d48b',
    500: '#d2c258',
    950: '#000000',
  },
}
SCSS
$custom: #d2c258;
$custom-light: #e2d48b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c258",
  "rgb": {
    "r": 210,
    "g": 194,
    "b": 88
  },
  "hsl": {
    "h": 52.131,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.80667,
    "c": 0.12785,
    "h": 100.8
  },
  "luminance": 0.5299
}

Semantic roles & 50–950 ramp

primary
#D2C258
secondary
#3E4891
accent
#5BE147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C258

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

Preview Lab → · Contrast checker → · Palette generator →

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