#D7C54E#D7C54E

#D7C54E is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.6% C 0.139 H 100.7°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#D7C54E
RGBrgb(215, 197, 78)
HSLhsl(52, 63%, 57%)
HSVhsv(52, 64%, 84%)
CMYKcmyk(0%, 8.4%, 63.7%, 15.7%)
CIE-LABlab(79.00, -7.57, 60.03)
CIE-LCHlch(79.00, 60.50, 97.19°)
OKLaboklab(81.64% -0.0257 0.1364)
OKLCHoklch(81.64% 0.139 100.7)
XYZxyz(49.3678, 54.9317, 15.2087)
Luminance0.5493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C54E #4E60D7
analogous
#D7814E #D7C54E #A4D74E
triadic
#D7C54E #4ED7C5 #C54ED7
tetradic
#D7C54E #4ED781 #4E60D7 #D74EA4
square
#D7C54E #4ED781 #4E60D7 #D74EA4
split-complementary
#D7C54E #4EA4D7 #814ED7
monochromatic
#8B7D1F #BDAA2B #D7C54E #E2D580 #EEE6B2

Accessibility & contrast

On white

1.75
#D7C54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.99
#D7C54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C54E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C54E#FFFFFF#000000##000000
##D7C54E1.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C040
Deuteranopia (green-blind)
#DCC755
Tritanopia (blue-blind)
#E7B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c54e;
/* rgb */ color: rgb(215, 197, 78);
/* oklch */ color: oklch(81.6% 0.139 100.7);
Tailwind
colors: {
  custom: {
    50: '#e7d685',
    500: '#d7c54e',
    950: '#000000',
  },
}
SCSS
$custom: #d7c54e;
$custom-light: #e7d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c54e",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 52.117,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.8164,
    "c": 0.1388,
    "h": 100.7
  },
  "luminance": 0.5493
}

Semantic roles & 50–950 ramp

primary
#D7C54E
secondary
#384491
accent
#57E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C54E

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

Preview Lab → · Contrast checker → · Palette generator →

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