#D7C24F#D7C24F

#D7C24F is a light, vivid yellow. Relative luminance 0.536; OKLCH L 81.0% C 0.136 H 98.9°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#D7C24F
RGBrgb(215, 194, 79)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 63%, 84%)
CMYKcmyk(0%, 9.8%, 63.3%, 15.7%)
CIE-LABlab(78.23, -5.97, 58.77)
CIE-LCHlch(78.23, 59.07, 95.80°)
OKLaboklab(81.03% -0.021 0.1339)
OKLCHoklch(81.03% 0.136 98.9)
XYZxyz(48.7295, 53.5973, 15.1742)
Luminance0.5360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C24F #4F64D7
analogous
#D77E4F #D7C24F #A8D74F
triadic
#D7C24F #4FD7C2 #C24FD7
tetradic
#D7C24F #4FD77E #4F64D7 #D74FA8
square
#D7C24F #4FD77E #4F64D7 #D74FA8
split-complementary
#D7C24F #4FA8D7 #7E4FD7
monochromatic
#8C7B20 #BEA72B #D7C24F #E2D381 #EEE5B3

Accessibility & contrast

On white

1.79
#D7C24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#D7C24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C24F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C24F#FFFFFF#000000##000000
##D7C24F1.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD41
Deuteranopia (green-blind)
#D9C555
Tritanopia (blue-blind)
#E7B5AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c24f;
/* rgb */ color: rgb(215, 194, 79);
/* oklch */ color: oklch(81.0% 0.136 98.9);
Tailwind
colors: {
  custom: {
    50: '#e7d485',
    500: '#d7c24f',
    950: '#000000',
  },
}
SCSS
$custom: #d7c24f;
$custom-light: #e7d485;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c24f",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 79
  },
  "hsl": {
    "h": 50.735,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81027,
    "c": 0.13551,
    "h": 98.9
  },
  "luminance": 0.53595
}

Semantic roles & 50–950 ramp

primary
#D7C24F
secondary
#394692
accent
#5BE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C24F

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

Preview Lab → · Contrast checker → · Palette generator →

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