#D9C652#D9C652

#D9C652 is a very light, vivid yellow. Relative luminance 0.557; OKLCH L 82.1% C 0.137 H 100.0°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#D9C652
RGBrgb(217, 198, 82)
HSLhsl(52, 64%, 59%)
HSVhsv(52, 62%, 85%)
CMYKcmyk(0%, 8.8%, 62.2%, 14.9%)
CIE-LABlab(79.47, -6.99, 58.87)
CIE-LCHlch(79.47, 59.28, 96.77°)
OKLaboklab(82.07% -0.0237 0.1345)
OKLCHoklch(82.07% 0.137 100)
XYZxyz(50.3344, 55.7512, 16.0907)
Luminance0.5575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C652 #5265D9
analogous
#D98252 #D9C652 #A8D952
triadic
#D9C652 #52D9C6 #C652D9
tetradic
#D9C652 #52D982 #5265D9 #D952A8
square
#D9C652 #52D982 #5265D9 #D952A8
split-complementary
#D9C652 #52A8D9 #8252D9
monochromatic
#918120 #C3AE2B #D9C652 #E4D784 #EFE7B6

Accessibility & contrast

On white

1.73
#D9C652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#D9C652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C652
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C652#FFFFFF#000000##000000
##D9C6521.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C145
Deuteranopia (green-blind)
#DDC858
Tritanopia (blue-blind)
#E9B9AD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d9c652;
/* rgb */ color: rgb(217, 198, 82);
/* oklch */ color: oklch(82.1% 0.137 100.0);
Tailwind
colors: {
  custom: {
    50: '#e8d787',
    500: '#d9c652',
    950: '#000000',
  },
}
SCSS
$custom: #d9c652;
$custom-light: #e8d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c652",
  "rgb": {
    "r": 217,
    "g": 198,
    "b": 82
  },
  "hsl": {
    "h": 51.556,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.82065,
    "c": 0.13654,
    "h": 100
  },
  "luminance": 0.55749
}

Semantic roles & 50–950 ramp

primary
#D9C652
secondary
#394696
accent
#58E741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C652

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

Preview Lab → · Contrast checker → · Palette generator →

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