#D5C252#D5C252

#D5C252 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.133 H 99.7°. Best body text is #000000 at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#D5C252
RGBrgb(213, 194, 82)
HSLhsl(51, 61%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 8.9%, 61.5%, 16.5%)
CIE-LABlab(78.08, -6.62, 57.25)
CIE-LCHlch(78.08, 57.63, 96.59°)
OKLaboklab(80.88% -0.0224 0.1311)
OKLCHoklch(80.88% 0.133 99.7)
XYZxyz(48.2573, 53.3410, 15.7349)
Luminance0.5334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C252 #5265D5
analogous
#D58152 #D5C252 #A6D552
triadic
#D5C252 #52D5C2 #C252D5
tetradic
#D5C252 #52D581 #5265D5 #D552A6
square
#D5C252 #52D581 #5265D5 #D552A6
split-complementary
#D5C252 #52A6D5 #8152D5
monochromatic
#8B7C22 #BCA72E #D5C252 #E1D383 #EDE5B4

Accessibility & contrast

On white

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

On black

11.67
#D5C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C252
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C252#FFFFFF#000000##000000
##D5C2521.001.8011.6711.67
#FFFFFF1.801.0021.0021.00
#00000011.6721.001.001.00
##00000011.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5c252;
/* rgb */ color: rgb(213, 194, 82);
/* oklch */ color: oklch(80.9% 0.133 99.7);
Tailwind
colors: {
  custom: {
    50: '#e5d487',
    500: '#d5c252',
    950: '#000000',
  },
}
SCSS
$custom: #d5c252;
$custom-light: #e5d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c252",
  "rgb": {
    "r": 213,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 51.298,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.80875,
    "c": 0.13303,
    "h": 99.7
  },
  "luminance": 0.53339
}

Semantic roles & 50–950 ramp

primary
#D5C252
secondary
#3A4791
accent
#5BE444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D5C252

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

Preview Lab → · Contrast checker → · Palette generator →

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