#D7E172#D7E172

#D7E172 is a very light, vivid yellow. Relative luminance 0.695; OKLCH L 87.9% C 0.136 H 113.4°. Best body text is #000000 at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#D7E172
RGBrgb(215, 225, 114)
HSLhsl(65, 65%, 66%)
HSVhsv(65, 49%, 88%)
CMYKcmyk(4.4%, 0%, 49.3%, 11.8%)
CIE-LABlab(86.76, -18.85, 52.65)
CIE-LCHlch(86.76, 55.92, 109.70°)
OKLaboklab(87.93% -0.054 0.1247)
OKLCHoklch(87.93% 0.136 113.4)
XYZxyz(57.9878, 69.5133, 26.2790)
Luminance0.6951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E172 #7C72E1
analogous
#E1B472 #D7E172 #A0E172
triadic
#D7E172 #72D7E1 #E172D7
tetradic
#D7E172 #72E1B4 #7C72E1 #E172A0
square
#D7E172 #72E1B4 #7C72E1 #E172A0
split-complementary
#D7E172 #72A0E1 #B472E1
monochromatic
#A6B326 #C9D640 #D7E172 #E5ECA4 #F4F6D7

Accessibility & contrast

On white

1.41
#D7E172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.90
#D7E172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E172
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E172#FFFFFF#000000##000000
##D7E1721.001.4114.9014.90
#FFFFFF1.411.0021.0021.00
#00000014.9021.001.001.00
##00000014.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD868
Deuteranopia (green-blind)
#EFDA78
Tritanopia (blue-blind)
#E3D6C8
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #d7e172;
/* rgb */ color: rgb(215, 225, 114);
/* oklch */ color: oklch(87.9% 0.136 113.4);
Tailwind
colors: {
  custom: {
    50: '#e5ea9d',
    500: '#d7e172',
    950: '#000000',
  },
}
SCSS
$custom: #d7e172;
$custom-light: #e5ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e172",
  "rgb": {
    "r": 215,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 65.405,
    "s": 64.912,
    "l": 66.471
  },
  "oklch": {
    "l": 0.87929,
    "c": 0.13587,
    "h": 113.4
  },
  "luminance": 0.69512
}

Semantic roles & 50–950 ramp

primary
#D7E172
secondary
#4E43B4
accent
#19CD29
background
#FEFEFC
surface
#FDFDF5
border
#D5D5CF
text
#16160E
muted
#84847F

Preview Lab

Preview with #D7E172

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

Preview Lab → · Contrast checker → · Palette generator →

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