#D7C548#D7C548

#D7C548 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.6% C 0.143 H 101.0°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#D7C548
RGBrgb(215, 197, 72)
HSLhsl(52, 64%, 56%)
HSVhsv(52, 67%, 84%)
CMYKcmyk(0%, 8.4%, 66.5%, 15.7%)
CIE-LABlab(78.95, -7.93, 62.46)
CIE-LCHlch(78.95, 62.97, 97.23°)
OKLaboklab(81.59% -0.0274 0.1406)
OKLCHoklch(81.59% 0.143 101)
XYZxyz(49.1624, 54.8496, 14.1271)
Luminance0.5485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C548 #485AD7
analogous
#D77E48 #D7C548 #A2D748
triadic
#D7C548 #48D7C5 #C548D7
tetradic
#D7C548 #48D77E #485AD7 #D748A2
square
#D7C548 #48D77E #485AD7 #D748A2
split-complementary
#D7C548 #48A2D7 #7E48D7
monochromatic
#877A1E #B9A729 #D7C548 #E2D57A #EDE5AC

Accessibility & contrast

On white

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

On black

11.97
#D7C548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C548
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C548#FFFFFF#000000##000000
##D7C5481.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF37
Deuteranopia (green-blind)
#DCC74F
Tritanopia (blue-blind)
#E7B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d7c548;
/* rgb */ color: rgb(215, 197, 72);
/* oklch */ color: oklch(81.6% 0.143 101.0);
Tailwind
colors: {
  custom: {
    50: '#e7d681',
    500: '#d7c548',
    950: '#000000',
  },
}
SCSS
$custom: #d7c548;
$custom-light: #e7d681;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c548",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 52.448,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81587,
    "c": 0.14327,
    "h": 101
  },
  "luminance": 0.54847
}

Semantic roles & 50–950 ramp

primary
#D7C548
secondary
#36418D
accent
#56E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C548

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

Preview Lab → · Contrast checker → · Palette generator →

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