#D7C04F#D7C04F

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

Color values

HEX#D7C04F
RGBrgb(215, 192, 79)
HSLhsl(50, 63%, 58%)
HSVhsv(50, 63%, 84%)
CMYKcmyk(0%, 10.7%, 63.3%, 15.7%)
CIE-LABlab(77.71, -4.94, 58.21)
CIE-LCHlch(77.71, 58.41, 94.85°)
OKLaboklab(80.62% -0.0181 0.1327)
OKLCHoklch(80.62% 0.134 97.8)
XYZxyz(48.2873, 52.7131, 15.0268)
Luminance0.5271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C04F #4F66D7
analogous
#D77C4F #D7C04F #AAD74F
triadic
#D7C04F #4FD7C0 #C04FD7
tetradic
#D7C04F #4FD77C #4F66D7 #D74FAA
square
#D7C04F #4FD77C #4F66D7 #D74FAA
split-complementary
#D7C04F #4FAAD7 #7C4FD7
monochromatic
#8C7A20 #BEA52B #D7C04F #E2D281 #EEE4B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C04F#FFFFFF#000000##000000
##D7C04F1.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)
#D2BC42
Deuteranopia (green-blind)
#D8C355
Tritanopia (blue-blind)
#E7B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c04f;
/* rgb */ color: rgb(215, 192, 79);
/* oklch */ color: oklch(80.6% 0.134 97.8);
Tailwind
colors: {
  custom: {
    50: '#e7d285',
    500: '#d7c04f',
    950: '#000000',
  },
}
SCSS
$custom: #d7c04f;
$custom-light: #e7d285;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c04f",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 49.853,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80615,
    "c": 0.13391,
    "h": 97.8
  },
  "luminance": 0.52711
}

Semantic roles & 50–950 ramp

primary
#D7C04F
secondary
#394892
accent
#5EE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C04F

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

Preview Lab → · Contrast checker → · Palette generator →

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