#D7C452#D7C452

#D7C452 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.5% C 0.135 H 99.9°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#D7C452
RGBrgb(215, 196, 82)
HSLhsl(51, 62%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 8.8%, 61.9%, 15.7%)
CIE-LABlab(78.77, -6.81, 58.06)
CIE-LCHlch(78.77, 58.46, 96.69°)
OKLaboklab(81.47% -0.0231 0.1328)
OKLCHoklch(81.47% 0.135 99.9)
XYZxyz(49.2892, 54.5382, 15.9117)
Luminance0.5454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C452 #5265D7
analogous
#D78252 #D7C452 #A7D752
triadic
#D7C452 #52D7C4 #C452D7
tetradic
#D7C452 #52D782 #5265D7 #D752A7
square
#D7C452 #52D782 #5265D7 #D752A7
split-complementary
#D7C452 #52A7D7 #8252D7
monochromatic
#8E7E21 #C0AA2C #D7C452 #E2D584 #EEE6B5

Accessibility & contrast

On white

1.76
#D7C452 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.91
#D7C452 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C452
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C452#FFFFFF#000000##000000
##D7C4521.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF45
Deuteranopia (green-blind)
#DBC658
Tritanopia (blue-blind)
#E7B7AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d7c452;
/* rgb */ color: rgb(215, 196, 82);
/* oklch */ color: oklch(81.5% 0.135 99.9);
Tailwind
colors: {
  custom: {
    50: '#e6d587',
    500: '#d7c452',
    950: '#000000',
  },
}
SCSS
$custom: #d7c452;
$custom-light: #e6d587;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c452",
  "rgb": {
    "r": 215,
    "g": 196,
    "b": 82
  },
  "hsl": {
    "h": 51.429,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.8147,
    "c": 0.13478,
    "h": 99.9
  },
  "luminance": 0.54536
}

Semantic roles & 50–950 ramp

primary
#D7C452
secondary
#3A4793
accent
#5AE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C452

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

Preview Lab → · Contrast checker → · Palette generator →

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