#D2D958#D2D958

#D2D958 is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 85.5% C 0.151 H 112.1°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#D2D958
RGBrgb(210, 217, 88)
HSLhsl(63, 63%, 60%)
HSVhsv(63, 59%, 85%)
CMYKcmyk(3.2%, 0%, 59.4%, 14.9%)
CIE-LABlab(83.98, -19.02, 61.04)
CIE-LCHlch(83.98, 63.93, 107.31°)
OKLaboklab(85.54% -0.0568 0.14)
OKLCHoklch(85.54% 0.151 112.1)
XYZxyz(53.1540, 64.0331, 18.7902)
Luminance0.6403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D958 #5F58D9
analogous
#D9A058 #D2D958 #91D958
triadic
#D2D958 #58D2D9 #D958D2
tetradic
#D2D958 #58D9A0 #5F58D9 #D95891
square
#D2D958 #58D9A0 #5F58D9 #D95891
split-complementary
#D2D958 #5891D9 #A058D9
monochromatic
#8F9522 #BEC72D #D2D958 #DFE48A #EDF0BC

Accessibility & contrast

On white

1.52
#D2D958 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.81
#D2D958 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D958
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D958#FFFFFF#000000##000000
##D2D9581.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D049
Deuteranopia (green-blind)
#E9D360
Tritanopia (blue-blind)
#DFCDBE
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d958;
/* rgb */ color: rgb(210, 217, 88);
/* oklch */ color: oklch(85.5% 0.151 112.1);
Tailwind
colors: {
  custom: {
    50: '#e2e48c',
    500: '#d2d958',
    950: '#000000',
  },
}
SCSS
$custom: #d2d958;
$custom-light: #e2e48c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d958",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 88
  },
  "hsl": {
    "h": 63.256,
    "s": 62.927,
    "l": 59.804
  },
  "oklch": {
    "l": 0.85535,
    "c": 0.15113,
    "h": 112.1
  },
  "luminance": 0.64032
}

Semantic roles & 50–950 ramp

primary
#D2D958
secondary
#413C9A
accent
#42E64B
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D958

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

Preview Lab → · Contrast checker → · Palette generator →

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