#D7D97D#D7D97D

#D7D97D is a very light, moderate yellow. Relative luminance 0.656; OKLCH L 86.4% C 0.115 H 109.7°. Best body text is #000000 at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#D7D97D
RGBrgb(215, 217, 125)
HSLhsl(61, 55%, 67%)
HSVhsv(61, 42%, 85%)
CMYKcmyk(0.9%, 0%, 42.4%, 14.9%)
CIE-LABlab(84.77, -13.84, 44.95)
CIE-LCHlch(84.77, 47.03, 107.11°)
OKLaboklab(86.39% -0.0388 0.1084)
OKLCHoklch(86.39% 0.115 109.7)
XYZxyz(56.5397, 65.5546, 29.0729)
Luminance0.6555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D97D #7F7DD9
analogous
#D9AD7D #D7D97D #A9D97D
triadic
#D7D97D #7DD7D9 #D97DD7
tetradic
#D7D97D #7DD9AD #7F7DD9 #D97DA9
square
#D7D97D #7DD9AD #7F7DD9 #D97DA9
split-complementary
#D7D97D #7DA9D9 #AD7DD9
monochromatic
#A7AA32 #C8CB4E #D7D97D #E6E7AC #F4F5DC

Accessibility & contrast

On white

1.49
#D7D97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.11
#D7D97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D97D
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D97D#FFFFFF#000000##000000
##D7D97D1.001.4914.1114.11
#FFFFFF1.491.0021.0021.00
#00000014.1121.001.001.00
##00000014.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D276
Deuteranopia (green-blind)
#E7D581
Tritanopia (blue-blind)
#E2CFC3
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d7d97d;
/* rgb */ color: rgb(215, 217, 125);
/* oklch */ color: oklch(86.4% 0.115 109.7);
Tailwind
colors: {
  custom: {
    50: '#e5e4a4',
    500: '#d7d97d',
    950: '#000000',
  },
}
SCSS
$custom: #d7d97d;
$custom-light: #e5e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d97d",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 125
  },
  "hsl": {
    "h": 61.304,
    "s": 54.762,
    "l": 67.059
  },
  "oklch": {
    "l": 0.86386,
    "c": 0.11516,
    "h": 109.7
  },
  "luminance": 0.65553
}

Semantic roles & 50–950 ramp

primary
#D7D97D
secondary
#4F4DAD
accent
#23C227
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D7D97D

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

Preview Lab → · Contrast checker → · Palette generator →

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