#D3C152#D3C152

#D3C152 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.132 H 100.1°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#D3C152
RGBrgb(211, 193, 82)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 61%, 83%)
CMYKcmyk(0%, 8.5%, 61.1%, 17.3%)
CIE-LABlab(77.64, -6.94, 56.72)
CIE-LCHlch(77.64, 57.14, 96.98°)
OKLaboklab(80.49% -0.0232 0.13)
OKLCHoklch(80.49% 0.132 100.1)
XYZxyz(47.4588, 52.6000, 15.6340)
Luminance0.5260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C152 #5264D3
analogous
#D38152 #D3C152 #A4D352
triadic
#D3C152 #52D3C1 #C152D3
tetradic
#D3C152 #52D381 #5264D3 #D352A4
square
#D3C152 #52D381 #5264D3 #D352A4
split-complementary
#D3C152 #52A4D3 #8152D3
monochromatic
#887A23 #B9A62F #D3C152 #DFD283 #ECE4B4

Accessibility & contrast

On white

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

On black

11.52
#D3C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C152
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C152#FFFFFF#000000##000000
##D3C1521.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#E2B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d3c152;
/* rgb */ color: rgb(211, 193, 82);
/* oklch */ color: oklch(80.5% 0.132 100.1);
Tailwind
colors: {
  custom: {
    50: '#e3d387',
    500: '#d3c152',
    950: '#000000',
  },
}
SCSS
$custom: #d3c152;
$custom-light: #e3d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c152",
  "rgb": {
    "r": 211,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 51.628,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80486,
    "c": 0.1321,
    "h": 100.1
  },
  "luminance": 0.52598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D3C152

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

Preview Lab → · Contrast checker → · Palette generator →

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