#D7C64F#D7C64F

#D7C64F is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.9% C 0.139 H 101.2°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#D7C64F
RGBrgb(215, 198, 79)
HSLhsl(53, 63%, 58%)
HSVhsv(53, 63%, 84%)
CMYKcmyk(0%, 7.9%, 63.3%, 15.7%)
CIE-LABlab(79.27, -8.02, 59.89)
CIE-LCHlch(79.27, 60.42, 97.63°)
OKLaboklab(81.86% -0.0269 0.1363)
OKLCHoklch(81.86% 0.139 101.2)
XYZxyz(49.6317, 55.4018, 15.4749)
Luminance0.5540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C64F #4F60D7
analogous
#D7824F #D7C64F #A4D74F
triadic
#D7C64F #4FD7C6 #C64FD7
tetradic
#D7C64F #4FD782 #4F60D7 #D74FA4
square
#D7C64F #4FD782 #4F60D7 #D74FA4
split-complementary
#D7C64F #4FA4D7 #824FD7
monochromatic
#8C7E20 #BEAB2B #D7C64F #E2D681 #EEE6B3

Accessibility & contrast

On white

1.74
#D7C64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#D7C64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C64F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C64F#FFFFFF#000000##000000
##D7C64F1.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C041
Deuteranopia (green-blind)
#DCC756
Tritanopia (blue-blind)
#E7B9AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c64f;
/* rgb */ color: rgb(215, 198, 79);
/* oklch */ color: oklch(81.9% 0.139 101.2);
Tailwind
colors: {
  custom: {
    50: '#e6d785',
    500: '#d7c64f',
    950: '#000000',
  },
}
SCSS
$custom: #d7c64f;
$custom-light: #e6d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c64f",
  "rgb": {
    "r": 215,
    "g": 198,
    "b": 79
  },
  "hsl": {
    "h": 52.5,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81857,
    "c": 0.13888,
    "h": 101.2
  },
  "luminance": 0.554
}

Semantic roles & 50–950 ramp

primary
#D7C64F
secondary
#394492
accent
#56E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C64F

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

Preview Lab → · Contrast checker → · Palette generator →

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