#D7C052#D7C052

#D7C052 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.132 H 97.5°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D7C052
RGBrgb(215, 192, 82)
HSLhsl(50, 62%, 58%)
HSVhsv(50, 62%, 84%)
CMYKcmyk(0%, 10.7%, 61.9%, 15.7%)
CIE-LABlab(77.73, -4.74, 56.92)
CIE-LCHlch(77.73, 57.12, 94.76°)
OKLaboklab(80.64% -0.0172 0.1304)
OKLCHoklch(80.64% 0.132 97.5)
XYZxyz(48.3990, 52.7578, 15.6149)
Luminance0.5276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C052 #5269D7
analogous
#D77D52 #D7C052 #ABD752
triadic
#D7C052 #52D7C0 #C052D7
tetradic
#D7C052 #52D77D #5269D7 #D752AB
square
#D7C052 #52D77D #5269D7 #D752AB
split-complementary
#D7C052 #52ABD7 #7D52D7
monochromatic
#8E7B21 #C0A62C #D7C052 #E2D284 #EEE4B5

Accessibility & contrast

On white

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

On black

11.55
#D7C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C052
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C052#FFFFFF#000000##000000
##D7C0521.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC46
Deuteranopia (green-blind)
#D8C357
Tritanopia (blue-blind)
#E7B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c052;
/* rgb */ color: rgb(215, 192, 82);
/* oklch */ color: oklch(80.6% 0.132 97.5);
Tailwind
colors: {
  custom: {
    50: '#e6d287',
    500: '#d7c052',
    950: '#000000',
  },
}
SCSS
$custom: #d7c052;
$custom-light: #e6d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c052",
  "rgb": {
    "r": 215,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 49.624,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.80644,
    "c": 0.1315,
    "h": 97.5
  },
  "luminance": 0.52756
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7C052

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

Preview Lab → · Contrast checker → · Palette generator →

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