#D7C54F#D7C54F

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

Color values

HEX#D7C54F
RGBrgb(215, 197, 79)
HSLhsl(52, 63%, 58%)
HSVhsv(52, 63%, 84%)
CMYKcmyk(0%, 8.4%, 63.3%, 15.7%)
CIE-LABlab(79.01, -7.51, 59.61)
CIE-LCHlch(79.01, 60.08, 97.18°)
OKLaboklab(81.65% -0.0254 0.1357)
OKLCHoklch(81.65% 0.138 100.6)
XYZxyz(49.4039, 54.9462, 15.3990)
Luminance0.5494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C54F #4F61D7
analogous
#D7814F #D7C54F #A5D74F
triadic
#D7C54F #4FD7C5 #C54FD7
tetradic
#D7C54F #4FD781 #4F61D7 #D74FA5
square
#D7C54F #4FD781 #4F61D7 #D74FA5
split-complementary
#D7C54F #4FA5D7 #814FD7
monochromatic
#8C7E20 #BEAA2B #D7C54F #E2D581 #EEE6B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C54F#FFFFFF#000000##000000
##D7C54F1.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)
#D6C041
Deuteranopia (green-blind)
#DCC755
Tritanopia (blue-blind)
#E7B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c54f;
/* rgb */ color: rgb(215, 197, 79);
/* oklch */ color: oklch(81.6% 0.138 100.6);
Tailwind
colors: {
  custom: {
    50: '#e6d685',
    500: '#d7c54f',
    950: '#000000',
  },
}
SCSS
$custom: #d7c54f;
$custom-light: #e6d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c54f",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 52.059,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81649,
    "c": 0.13803,
    "h": 100.6
  },
  "luminance": 0.54944
}

Semantic roles & 50–950 ramp

primary
#D7C54F
secondary
#394492
accent
#58E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C54F

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

Preview Lab → · Contrast checker → · Palette generator →

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