#D3C252#D3C252

#D3C252 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.133 H 100.7°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#D3C252
RGBrgb(211, 194, 82)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 61%, 83%)
CMYKcmyk(0%, 8.1%, 61.1%, 17.3%)
CIE-LABlab(77.90, -7.46, 57.00)
CIE-LCHlch(77.90, 57.49, 97.45°)
OKLaboklab(80.69% -0.0247 0.1306)
OKLCHoklch(80.69% 0.133 100.7)
XYZxyz(47.6806, 53.0436, 15.7079)
Luminance0.5304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C252 #5263D3
analogous
#D38252 #D3C252 #A4D352
triadic
#D3C252 #52D3C2 #C252D3
tetradic
#D3C252 #52D382 #5263D3 #D352A4
square
#D3C252 #52D382 #5263D3 #D352A4
split-complementary
#D3C252 #52A4D3 #8252D3
monochromatic
#887B23 #B9A72F #D3C252 #DFD383 #ECE4B4

Accessibility & contrast

On white

1.81
#D3C252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#D3C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C252
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C252#FFFFFF#000000##000000
##D3C2521.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d3c252;
/* rgb */ color: rgb(211, 194, 82);
/* oklch */ color: oklch(80.7% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#e3d487',
    500: '#d3c252',
    950: '#000000',
  },
}
SCSS
$custom: #d3c252;
$custom-light: #e3d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c252",
  "rgb": {
    "r": 211,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 52.093,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80694,
    "c": 0.13297,
    "h": 100.7
  },
  "luminance": 0.53042
}

Semantic roles & 50–950 ramp

primary
#D3C252
secondary
#3B468E
accent
#5AE345
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D3C252

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

Preview Lab → · Contrast checker → · Palette generator →

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