#D2D772#D2D772

#D2D772 is a very light, vivid yellow. Relative luminance 0.635; OKLCH L 85.4% C 0.125 H 111.3°. Best body text is #000000 at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#D2D772
RGBrgb(210, 215, 114)
HSLhsl(63, 56%, 65%)
HSVhsv(63, 47%, 84%)
CMYKcmyk(2.3%, 0%, 47%, 15.7%)
CIE-LABlab(83.71, -15.90, 48.91)
CIE-LCHlch(83.71, 51.43, 108.01°)
OKLaboklab(85.41% -0.0454 0.1165)
OKLCHoklch(85.41% 0.125 111.3)
XYZxyz(53.9170, 63.5184, 25.3363)
Luminance0.6352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D772 #7772D7
analogous
#D7A972 #D2D772 #A0D772
triadic
#D2D772 #72D2D7 #D772D2
tetradic
#D2D772 #72D7A9 #7772D7 #D772A0
square
#D2D772 #72D7A9 #7772D7 #D772A0
split-complementary
#D2D772 #72A0D7 #A972D7
monochromatic
#9BA12E #C3C942 #D2D772 #E1E5A2 #F0F2D1

Accessibility & contrast

On white

1.53
#D2D772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.70
#D2D772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D772
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D772#FFFFFF#000000##000000
##D2D7721.001.5313.7013.70
#FFFFFF1.531.0021.0021.00
#00000013.7021.001.001.00
##00000013.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CF69
Deuteranopia (green-blind)
#E5D277
Tritanopia (blue-blind)
#DECCBF
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d772;
/* rgb */ color: rgb(210, 215, 114);
/* oklch */ color: oklch(85.4% 0.125 111.3);
Tailwind
colors: {
  custom: {
    50: '#e1e39d',
    500: '#d2d772',
    950: '#000000',
  },
}
SCSS
$custom: #d2d772;
$custom-light: #e1e39d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d772",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 62.97,
    "s": 55.801,
    "l": 64.51
  },
  "oklch": {
    "l": 0.85407,
    "c": 0.12505,
    "h": 111.3
  },
  "luminance": 0.63517
}

Semantic roles & 50–950 ramp

primary
#D2D772
secondary
#4D48A5
accent
#22C32A
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2D772

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

Preview Lab → · Contrast checker → · Palette generator →

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