#D7C152#D7C152

#D7C152 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.132 H 98.1°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#D7C152
RGBrgb(215, 193, 82)
HSLhsl(50, 62%, 58%)
HSVhsv(50, 62%, 84%)
CMYKcmyk(0%, 10.2%, 61.9%, 15.7%)
CIE-LABlab(77.99, -5.26, 57.20)
CIE-LCHlch(77.99, 57.45, 95.25°)
OKLaboklab(80.85% -0.0187 0.131)
OKLCHoklch(80.85% 0.132 98.1)
XYZxyz(48.6193, 53.1984, 15.6884)
Luminance0.5320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C152 #5268D7
analogous
#D77E52 #D7C152 #AAD752
triadic
#D7C152 #52D7C1 #C152D7
tetradic
#D7C152 #52D77E #5268D7 #D752AA
square
#D7C152 #52D77E #5268D7 #D752AA
split-complementary
#D7C152 #52AAD7 #7E52D7
monochromatic
#8E7C21 #C0A72C #D7C152 #E2D384 #EEE5B5

Accessibility & contrast

On white

1.80
#D7C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#D7C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C152
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C152#FFFFFF#000000##000000
##D7C1521.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D8C458
Tritanopia (blue-blind)
#E7B4A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c152;
/* rgb */ color: rgb(215, 193, 82);
/* oklch */ color: oklch(80.8% 0.132 98.1);
Tailwind
colors: {
  custom: {
    50: '#e6d387',
    500: '#d7c152',
    950: '#000000',
  },
}
SCSS
$custom: #d7c152;
$custom-light: #e6d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c152",
  "rgb": {
    "r": 215,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 50.075,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.8085,
    "c": 0.1323,
    "h": 98.1
  },
  "luminance": 0.53196
}

Semantic roles & 50–950 ramp

primary
#D7C152
secondary
#3A4993
accent
#5DE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C152

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

Preview Lab → · Contrast checker → · Palette generator →

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