#D7C04E#D7C04E

#D7C04E is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.135 H 97.8°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#D7C04E
RGBrgb(215, 192, 78)
HSLhsl(50, 63%, 57%)
HSVhsv(50, 64%, 84%)
CMYKcmyk(0%, 10.7%, 63.7%, 15.7%)
CIE-LABlab(77.70, -5.00, 58.63)
CIE-LCHlch(77.70, 58.84, 94.87°)
OKLaboklab(80.61% -0.0184 0.1334)
OKLCHoklch(80.61% 0.135 97.8)
XYZxyz(48.2512, 52.6986, 14.8365)
Luminance0.5270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C04E #4E65D7
analogous
#D77B4E #D7C04E #AAD74E
triadic
#D7C04E #4ED7C0 #C04ED7
tetradic
#D7C04E #4ED77B #4E65D7 #D74EAA
square
#D7C04E #4ED77B #4E65D7 #D74EAA
split-complementary
#D7C04E #4EAAD7 #7B4ED7
monochromatic
#8B791F #BDA52B #D7C04E #E2D280 #EEE4B2

Accessibility & contrast

On white

1.82
#D7C04E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#D7C04E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C04E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C04E#FFFFFF#000000##000000
##D7C04E1.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB41
Deuteranopia (green-blind)
#D8C354
Tritanopia (blue-blind)
#E7B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c04e;
/* rgb */ color: rgb(215, 192, 78);
/* oklch */ color: oklch(80.6% 0.135 97.8);
Tailwind
colors: {
  custom: {
    50: '#e7d284',
    500: '#d7c04e',
    950: '#000000',
  },
}
SCSS
$custom: #d7c04e;
$custom-light: #e7d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c04e",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 49.927,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80605,
    "c": 0.13469,
    "h": 97.8
  },
  "luminance": 0.52696
}

Semantic roles & 50–950 ramp

primary
#D7C04E
secondary
#384791
accent
#5DE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C04E

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

Preview Lab → · Contrast checker → · Palette generator →

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