#D2D954#D2D954

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

Color values

HEX#D2D954
RGBrgb(210, 217, 84)
HSLhsl(63, 64%, 59%)
HSVhsv(63, 61%, 85%)
CMYKcmyk(3.2%, 0%, 61.3%, 14.9%)
CIE-LABlab(83.95, -19.29, 62.68)
CIE-LCHlch(83.95, 65.58, 107.11°)
OKLaboklab(85.5% -0.058 0.143)
OKLCHoklch(85.5% 0.154 112.1)
XYZxyz(52.9929, 63.9686, 17.9414)
Luminance0.6397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D954 #5B54D9
analogous
#D99E54 #D2D954 #90D954
triadic
#D2D954 #54D2D9 #D954D2
tetradic
#D2D954 #54D99E #5B54D9 #D95490
square
#D2D954 #54D99E #5B54D9 #D95490
split-complementary
#D2D954 #5490D9 #9E54D9
monochromatic
#8C9220 #BCC42C #D2D954 #DFE486 #ECEFB8

Accessibility & contrast

On white

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

On black

13.79
#D2D954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D954
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D954#FFFFFF#000000##000000
##D2D9541.001.5213.7913.79
#FFFFFF1.521.0021.0021.00
#00000013.7921.001.001.00
##00000013.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D044
Deuteranopia (green-blind)
#E9D35C
Tritanopia (blue-blind)
#DFCDBD
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d954;
/* rgb */ color: rgb(210, 217, 84);
/* oklch */ color: oklch(85.5% 0.154 112.1);
Tailwind
colors: {
  custom: {
    50: '#e3e48a',
    500: '#d2d954',
    950: '#000000',
  },
}
SCSS
$custom: #d2d954;
$custom-light: #e3e48a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d954",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 84
  },
  "hsl": {
    "h": 63.158,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.85498,
    "c": 0.15431,
    "h": 112.1
  },
  "luminance": 0.63967
}

Semantic roles & 50–950 ramp

primary
#D2D954
secondary
#3F3A97
accent
#41E74A
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D954

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

Preview Lab → · Contrast checker → · Palette generator →

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