#D2D875#D2D875

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

Color values

HEX#D2D875
RGBrgb(210, 216, 117)
HSLhsl(64, 56%, 65%)
HSVhsv(64, 46%, 85%)
CMYKcmyk(2.8%, 0%, 45.8%, 15.3%)
CIE-LABlab(84.02, -16.11, 47.83)
CIE-LCHlch(84.02, 50.47, 108.61°)
OKLaboklab(85.66% -0.0457 0.1144)
OKLCHoklch(85.66% 0.123 111.8)
XYZxyz(54.3460, 64.0987, 26.3356)
Luminance0.6410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D875 #7B75D8
analogous
#D8AC75 #D2D875 #A1D875
triadic
#D2D875 #75D2D8 #D875D2
tetradic
#D2D875 #75D8AC #7B75D8 #D875A1
square
#D2D875 #75D8AC #7B75D8 #D875A1
split-complementary
#D2D875 #75A1D8 #AC75D8
monochromatic
#9DA42E #C2CB45 #D2D875 #E2E5A5 #F1F3D4

Accessibility & contrast

On white

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

On black

13.82
#D2D875 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D875
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D875#FFFFFF#000000##000000
##D2D8751.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D06D
Deuteranopia (green-blind)
#E5D37A
Tritanopia (blue-blind)
#DDCEC1
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d875;
/* rgb */ color: rgb(210, 216, 117);
/* oklch */ color: oklch(85.7% 0.123 111.8);
Tailwind
colors: {
  custom: {
    50: '#e1e39f',
    500: '#d2d875',
    950: '#000000',
  },
}
SCSS
$custom: #d2d875;
$custom-light: #e1e39f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d875",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 117
  },
  "hsl": {
    "h": 63.636,
    "s": 55.932,
    "l": 65.294
  },
  "oklch": {
    "l": 0.8566,
    "c": 0.12317,
    "h": 111.8
  },
  "luminance": 0.64098
}

Semantic roles & 50–950 ramp

primary
#D2D875
secondary
#4F49A8
accent
#22C32C
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D875

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

Preview Lab → · Contrast checker → · Palette generator →

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