#D2D877#D2D877

#D2D877 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 85.7% C 0.121 H 111.8°. Best body text is #000000 at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#D2D877
RGBrgb(210, 216, 119)
HSLhsl(64, 55%, 66%)
HSVhsv(64, 45%, 85%)
CMYKcmyk(2.8%, 0%, 44.9%, 15.3%)
CIE-LABlab(84.04, -15.91, 46.90)
CIE-LCHlch(84.04, 49.52, 108.75°)
OKLaboklab(85.69% -0.045 0.1124)
OKLCHoklch(85.69% 0.121 111.8)
XYZxyz(54.4648, 64.1462, 26.9615)
Luminance0.6414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D877 #7D77D8
analogous
#D8AD77 #D2D877 #A1D877
triadic
#D2D877 #77D2D8 #D877D2
tetradic
#D2D877 #77D8AD #7D77D8 #D877A1
square
#D2D877 #77D8AD #7D77D8 #D877A1
split-complementary
#D2D877 #77A1D8 #AD77D8
monochromatic
#9EA52F #C2CA47 #D2D877 #E2E6A7 #F1F3D6

Accessibility & contrast

On white

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

On black

13.83
#D2D877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D877
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D877#FFFFFF#000000##000000
##D2D8771.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D06F
Deuteranopia (green-blind)
#E5D37C
Tritanopia (blue-blind)
#DDCEC1
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d2d877;
/* rgb */ color: rgb(210, 216, 119);
/* oklch */ color: oklch(85.7% 0.121 111.8);
Tailwind
colors: {
  custom: {
    50: '#e1e4a0',
    500: '#d2d877',
    950: '#000000',
  },
}
SCSS
$custom: #d2d877;
$custom-light: #e1e4a0;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d877",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 119
  },
  "hsl": {
    "h": 63.711,
    "s": 55.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.85688,
    "c": 0.1211,
    "h": 111.8
  },
  "luminance": 0.64145
}

Semantic roles & 50–950 ramp

primary
#D2D877
secondary
#504AA9
accent
#23C32C
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D877

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

Preview Lab → · Contrast checker → · Palette generator →

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