#D7C970#D7C970

#D7C970 is a very light, moderate yellow. Relative luminance 0.574; OKLCH L 82.9% C 0.112 H 100.5°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#D7C970
RGBrgb(215, 201, 112)
HSLhsl(52, 56%, 64%)
HSVhsv(52, 48%, 84%)
CMYKcmyk(0%, 6.5%, 47.9%, 15.7%)
CIE-LABlab(80.40, -7.00, 45.94)
CIE-LCHlch(80.40, 46.47, 98.67°)
OKLaboklab(82.86% -0.0204 0.1098)
OKLCHoklch(82.86% 0.112 100.5)
XYZxyz(51.8370, 57.3920, 23.6733)
Luminance0.5739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C970 #707ED7
analogous
#D79670 #D7C970 #B2D770
triadic
#D7C970 #70D7C9 #C970D7
tetradic
#D7C970 #70D796 #707ED7 #D770B2
square
#D7C970 #70D796 #707ED7 #D770B2
split-complementary
#D7C970 #70B2D7 #9670D7
monochromatic
#A0902D #CAB740 #D7C970 #E4DBA0 #F2EDD0

Accessibility & contrast

On white

1.68
#D7C970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#D7C970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C970
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C970#FFFFFF#000000##000000
##D7C9701.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C468
Deuteranopia (green-blind)
#DCCA74
Tritanopia (blue-blind)
#E4BEB4
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7c970;
/* rgb */ color: rgb(215, 201, 112);
/* oklch */ color: oklch(82.9% 0.112 100.5);
Tailwind
colors: {
  custom: {
    50: '#e5d99b',
    500: '#d7c970',
    950: '#000000',
  },
}
SCSS
$custom: #d7c970;
$custom-light: #e5d99b;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c970",
  "rgb": {
    "r": 215,
    "g": 201,
    "b": 112
  },
  "hsl": {
    "h": 51.845,
    "s": 56.284,
    "l": 64.118
  },
  "oklch": {
    "l": 0.82862,
    "c": 0.11163,
    "h": 100.5
  },
  "luminance": 0.5739
}

Semantic roles & 50–950 ramp

primary
#D7C970
secondary
#4754A4
accent
#38C422
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D7C970

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

Preview Lab → · Contrast checker → · Palette generator →

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