#D7C04A#D7C04A

#D7C04A is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.6% C 0.138 H 98.2°. Best body text is #000000 at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#D7C04A
RGBrgb(215, 192, 74)
HSLhsl(50, 64%, 57%)
HSVhsv(50, 66%, 84%)
CMYKcmyk(0%, 10.7%, 65.6%, 15.7%)
CIE-LABlab(77.66, -5.24, 60.29)
CIE-LCHlch(77.66, 60.52, 94.97°)
OKLaboklab(80.57% -0.0195 0.1364)
OKLCHoklch(80.57% 0.138 98.2)
XYZxyz(48.1121, 52.6430, 14.1041)
Luminance0.5264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C04A #4A61D7
analogous
#D77A4A #D7C04A #A8D74A
triadic
#D7C04A #4AD7C0 #C04AD7
tetradic
#D7C04A #4AD77A #4A61D7 #D74AA8
square
#D7C04A #4AD77A #4A61D7 #D74AA8
split-complementary
#D7C04A #4AA8D7 #7A4AD7
monochromatic
#88771E #BBA329 #D7C04A #E2D17C #EDE3AE

Accessibility & contrast

On white

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

On black

11.53
#D7C04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C04A
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C04A#FFFFFF#000000##000000
##D7C04A1.001.8211.5311.53
#FFFFFF1.821.0021.0021.00
#00000011.5321.001.001.00
##00000011.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB3B
Deuteranopia (green-blind)
#D8C350
Tritanopia (blue-blind)
#E7B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c04a;
/* rgb */ color: rgb(215, 192, 74);
/* oklch */ color: oklch(80.6% 0.138 98.2);
Tailwind
colors: {
  custom: {
    50: '#e7d282',
    500: '#d7c04a',
    950: '#000000',
  },
}
SCSS
$custom: #d7c04a;
$custom-light: #e7d282;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c04a",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 50.213,
    "s": 63.801,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80568,
    "c": 0.13774,
    "h": 98.2
  },
  "luminance": 0.52641
}

Semantic roles & 50–950 ramp

primary
#D7C04A
secondary
#37458F
accent
#5CE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C04A

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

Preview Lab → · Contrast checker → · Palette generator →

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