#D6C252#D6C252

#D6C252 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.133 H 99.2°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#D6C252
RGBrgb(214, 194, 82)
HSLhsl(51, 62%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 9.3%, 61.7%, 16.1%)
CIE-LABlab(78.16, -6.20, 57.37)
CIE-LCHlch(78.16, 57.70, 96.17°)
OKLaboklab(80.97% -0.0213 0.1314)
OKLCHoklch(80.97% 0.133 99.2)
XYZxyz(48.5483, 53.4910, 15.7486)
Luminance0.5349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6C252 #5266D6
analogous
#D68052 #D6C252 #A8D652
triadic
#D6C252 #52D6C2 #C252D6
tetradic
#D6C252 #52D680 #5266D6 #D652A8
square
#D6C252 #52D680 #5266D6 #D652A8
split-complementary
#D6C252 #52A8D6 #8052D6
monochromatic
#8C7C21 #BEA82D #D6C252 #E2D383 #EDE5B5

Accessibility & contrast

On white

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

On black

11.70
#D6C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6C252
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6C252#FFFFFF#000000##000000
##D6C2521.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d6c252;
/* rgb */ color: rgb(214, 194, 82);
/* oklch */ color: oklch(81.0% 0.133 99.2);
Tailwind
colors: {
  custom: {
    50: '#e6d487',
    500: '#d6c252',
    950: '#000000',
  },
}
SCSS
$custom: #d6c252;
$custom-light: #e6d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d6c252",
  "rgb": {
    "r": 214,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 50.909,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.80965,
    "c": 0.13307,
    "h": 99.2
  },
  "luminance": 0.53489
}

Semantic roles & 50–950 ramp

primary
#D6C252
secondary
#3A4792
accent
#5CE543
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D6C252

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

Preview Lab → · Contrast checker → · Palette generator →

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