#D7C04C#D7C04C

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

Color values

HEX#D7C04C
RGBrgb(215, 192, 76)
HSLhsl(50, 63%, 57%)
HSVhsv(50, 65%, 84%)
CMYKcmyk(0%, 10.7%, 64.7%, 15.7%)
CIE-LABlab(77.68, -5.12, 59.47)
CIE-LCHlch(77.68, 59.69, 94.92°)
OKLaboklab(80.59% -0.019 0.1349)
OKLCHoklch(80.59% 0.136 98)
XYZxyz(48.1806, 52.6704, 14.4646)
Luminance0.5267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C04C #4C63D7
analogous
#D77B4C #D7C04C #A9D74C
triadic
#D7C04C #4CD7C0 #C04CD7
tetradic
#D7C04C #4CD77B #4C63D7 #D74CA9
square
#D7C04C #4CD77B #4C63D7 #D74CA9
split-complementary
#D7C04C #4CA9D7 #7B4CD7
monochromatic
#8A781F #BCA42A #D7C04C #E2D27E #EDE3B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C04C#FFFFFF#000000##000000
##D7C04C1.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)
#D2BB3E
Deuteranopia (green-blind)
#D8C352
Tritanopia (blue-blind)
#E7B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c04c;
/* rgb */ color: rgb(215, 192, 76);
/* oklch */ color: oklch(80.6% 0.136 98.0);
Tailwind
colors: {
  custom: {
    50: '#e7d283',
    500: '#d7c04c',
    950: '#000000',
  },
}
SCSS
$custom: #d7c04c;
$custom-light: #e7d283;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c04c",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 50.072,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80586,
    "c": 0.13624,
    "h": 98
  },
  "luminance": 0.52668
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7C04C

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

Preview Lab → · Contrast checker → · Palette generator →

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