#D7CC48#D7CC48

#D7CC48 is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 83.0% C 0.149 H 104.5°. Best body text is #000000 at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#D7CC48
RGBrgb(215, 204, 72)
HSLhsl(55, 64%, 56%)
HSVhsv(55, 67%, 84%)
CMYKcmyk(0%, 5.1%, 66.5%, 15.7%)
CIE-LABlab(80.80, -11.48, 64.36)
CIE-LCHlch(80.80, 65.38, 100.12°)
OKLaboklab(83.05% -0.0375 0.1446)
OKLCHoklch(83.05% 0.149 104.5)
XYZxyz(50.7889, 58.1026, 14.6692)
Luminance0.5810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CC48 #4853D7
analogous
#D78548 #D7CC48 #9BD748
triadic
#D7CC48 #48D7CC #CC48D7
tetradic
#D7CC48 #48D785 #4853D7 #D7489B
square
#D7CC48 #48D785 #4853D7 #D7489B
split-complementary
#D7CC48 #489BD7 #8548D7
monochromatic
#877F1E #B9AE29 #D7CC48 #E2DA7A #EDE8AC

Accessibility & contrast

On white

1.66
#D7CC48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.62
#D7CC48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CC48
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CC48#FFFFFF#000000##000000
##D7CC481.001.6612.6212.62
#FFFFFF1.661.0021.0021.00
#00000012.6221.001.001.00
##00000012.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC536
Deuteranopia (green-blind)
#E1CB50
Tritanopia (blue-blind)
#E7BFB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d7cc48;
/* rgb */ color: rgb(215, 204, 72);
/* oklch */ color: oklch(83.0% 0.149 104.5);
Tailwind
colors: {
  custom: {
    50: '#e7db82',
    500: '#d7cc48',
    950: '#000000',
  },
}
SCSS
$custom: #d7cc48;
$custom-light: #e7db82;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cc48",
  "rgb": {
    "r": 215,
    "g": 204,
    "b": 72
  },
  "hsl": {
    "h": 55.385,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8305,
    "c": 0.14941,
    "h": 104.5
  },
  "luminance": 0.58101
}

Semantic roles & 50–950 ramp

primary
#D7CC48
secondary
#363D8D
accent
#4DE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7CC48

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

Preview Lab → · Contrast checker → · Palette generator →

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