#D7C048#D7C048

#D7C048 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.6% C 0.139 H 98.3°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#D7C048
RGBrgb(215, 192, 72)
HSLhsl(50, 64%, 56%)
HSVhsv(50, 67%, 84%)
CMYKcmyk(0%, 10.7%, 66.5%, 15.7%)
CIE-LABlab(77.65, -5.36, 61.11)
CIE-LCHlch(77.65, 61.34, 95.01°)
OKLaboklab(80.55% -0.0201 0.1378)
OKLCHoklch(80.55% 0.139 98.3)
XYZxyz(48.0458, 52.6165, 13.7549)
Luminance0.5261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C048 #485FD7
analogous
#D77948 #D7C048 #A7D748
triadic
#D7C048 #48D7C0 #C048D7
tetradic
#D7C048 #48D779 #485FD7 #D748A7
square
#D7C048 #48D779 #485FD7 #D748A7
split-complementary
#D7C048 #48A7D7 #7948D7
monochromatic
#87761E #B9A229 #D7C048 #E2D17A #EDE3AC

Accessibility & contrast

On white

1.82
#D7C048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#D7C048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C048
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C048#FFFFFF#000000##000000
##D7C0481.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D8C34F
Tritanopia (blue-blind)
#E7B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c048;
/* rgb */ color: rgb(215, 192, 72);
/* oklch */ color: oklch(80.6% 0.139 98.3);
Tailwind
colors: {
  custom: {
    50: '#e7d281',
    500: '#d7c048',
    950: '#000000',
  },
}
SCSS
$custom: #d7c048;
$custom-light: #e7d281;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c048",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 50.35,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80551,
    "c": 0.13922,
    "h": 98.3
  },
  "luminance": 0.52614
}

Semantic roles & 50–950 ramp

primary
#D7C048
secondary
#36448D
accent
#5BE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C048

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

Preview Lab → · Contrast checker → · Palette generator →

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