#D7C04D#D7C04D

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

Color values

HEX#D7C04D
RGBrgb(215, 192, 77)
HSLhsl(50, 63%, 57%)
HSVhsv(50, 64%, 84%)
CMYKcmyk(0%, 10.7%, 64.2%, 15.7%)
CIE-LABlab(77.69, -5.06, 59.05)
CIE-LCHlch(77.69, 59.27, 94.90°)
OKLaboklab(80.6% -0.0187 0.1342)
OKLCHoklch(80.6% 0.135 97.9)
XYZxyz(48.2156, 52.6844, 14.6492)
Luminance0.5268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C04D #4D64D7
analogous
#D77B4D #D7C04D #A9D74D
triadic
#D7C04D #4DD7C0 #C04DD7
tetradic
#D7C04D #4DD77B #4D64D7 #D74DA9
square
#D7C04D #4DD77B #4D64D7 #D74DA9
split-complementary
#D7C04D #4DA9D7 #7B4DD7
monochromatic
#8A791F #BCA42A #D7C04D #E2D27F #EDE3B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C04D#FFFFFF#000000##000000
##D7C04D1.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)
#D2BB3F
Deuteranopia (green-blind)
#D8C353
Tritanopia (blue-blind)
#E7B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c04d;
/* rgb */ color: rgb(215, 192, 77);
/* oklch */ color: oklch(80.6% 0.135 97.9);
Tailwind
colors: {
  custom: {
    50: '#e7d284',
    500: '#d7c04d',
    950: '#000000',
  },
}
SCSS
$custom: #d7c04d;
$custom-light: #e7d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c04d",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 50,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80596,
    "c": 0.13546,
    "h": 97.9
  },
  "luminance": 0.52682
}

Semantic roles & 50–950 ramp

primary
#D7C04D
secondary
#384790
accent
#5DE641
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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