#D7C24C#D7C24C

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

Color values

HEX#D7C24C
RGBrgb(215, 194, 76)
HSLhsl(51, 63%, 57%)
HSVhsv(51, 65%, 84%)
CMYKcmyk(0%, 9.8%, 64.7%, 15.7%)
CIE-LABlab(78.20, -6.15, 60.02)
CIE-LCHlch(78.20, 60.34, 95.85°)
OKLaboklab(81% -0.0219 0.1361)
OKLCHoklch(81% 0.138 99.2)
XYZxyz(48.6227, 53.5546, 14.6120)
Luminance0.5355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C24C #4C61D7
analogous
#D77D4C #D7C24C #A7D74C
triadic
#D7C24C #4CD7C2 #C24CD7
tetradic
#D7C24C #4CD77D #4C61D7 #D74CA7
square
#D7C24C #4CD77D #4C61D7 #D74CA7
split-complementary
#D7C24C #4CA7D7 #7D4CD7
monochromatic
#8A7A1F #BCA62A #D7C24C #E2D37E #EDE4B0

Accessibility & contrast

On white

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

On black

11.71
#D7C24C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C24C
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C24C#FFFFFF#000000##000000
##D7C24C1.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD3E
Deuteranopia (green-blind)
#D9C552
Tritanopia (blue-blind)
#E7B5A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c24c;
/* rgb */ color: rgb(215, 194, 76);
/* oklch */ color: oklch(81.0% 0.138 99.2);
Tailwind
colors: {
  custom: {
    50: '#e7d483',
    500: '#d7c24c',
    950: '#000000',
  },
}
SCSS
$custom: #d7c24c;
$custom-light: #e7d483;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c24c",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 76
  },
  "hsl": {
    "h": 50.935,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81,
    "c": 0.13783,
    "h": 99.2
  },
  "luminance": 0.53552
}

Semantic roles & 50–950 ramp

primary
#D7C24C
secondary
#374590
accent
#5AE641
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C24C

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

Preview Lab → · Contrast checker → · Palette generator →

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