#D7C54C#D7C54C

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

Color values

HEX#D7C54C
RGBrgb(215, 197, 76)
HSLhsl(52, 63%, 57%)
HSVhsv(52, 65%, 84%)
CMYKcmyk(0%, 8.4%, 64.7%, 15.7%)
CIE-LABlab(78.99, -7.69, 60.85)
CIE-LCHlch(78.99, 61.34, 97.21°)
OKLaboklab(81.62% -0.0263 0.1378)
OKLCHoklch(81.62% 0.14 100.8)
XYZxyz(49.2971, 54.9035, 14.8368)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C54C #4C5ED7
analogous
#D7804C #D7C54C #A4D74C
triadic
#D7C54C #4CD7C5 #C54CD7
tetradic
#D7C54C #4CD780 #4C5ED7 #D74CA4
square
#D7C54C #4CD780 #4C5ED7 #D74CA4
split-complementary
#D7C54C #4CA4D7 #804CD7
monochromatic
#8A7C1F #BCA92A #D7C54C #E2D57E #EDE5B0

Accessibility & contrast

On white

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

On black

11.98
#D7C54C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C54C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C54C#FFFFFF#000000##000000
##D7C54C1.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7c54c;
/* rgb */ color: rgb(215, 197, 76);
/* oklch */ color: oklch(81.6% 0.140 100.8);
Tailwind
colors: {
  custom: {
    50: '#e7d684',
    500: '#d7c54c',
    950: '#000000',
  },
}
SCSS
$custom: #d7c54c;
$custom-light: #e7d684;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c54c",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 76
  },
  "hsl": {
    "h": 52.23,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81622,
    "c": 0.14033,
    "h": 100.8
  },
  "luminance": 0.54901
}

Semantic roles & 50–950 ramp

primary
#D7C54C
secondary
#374390
accent
#57E641
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C54C

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

Preview Lab → · Contrast checker → · Palette generator →

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