#D3C522#D3C522

#D3C522 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.0% C 0.164 H 104.1°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#D3C522
RGBrgb(211, 197, 34)
HSLhsl(55, 72%, 48%)
HSVhsv(55, 84%, 83%)
CMYKcmyk(0%, 6.6%, 83.9%, 17.3%)
CIE-LABlab(78.40, -11.18, 74.26)
CIE-LCHlch(78.40, 75.10, 98.56°)
OKLaboklab(81% -0.0398 0.1591)
OKLCHoklch(81% 0.164 104.1)
XYZxyz(47.1212, 53.8989, 9.4345)
Luminance0.5390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C522 #2230D3
analogous
#D36C22 #D3C522 #89D322
triadic
#D3C522 #22D3C5 #C522D3
tetradic
#D3C522 #22D36C #2230D3 #D32289
square
#D3C522 #22D36C #2230D3 #D32289
split-complementary
#D3C522 #2289D3 #6C22D3
monochromatic
#6A6311 #9E941A #D3C522 #E3D74F #EBE384

Accessibility & contrast

On white

1.78
#D3C522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#D3C522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C522
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C522#FFFFFF#000000##000000
##D3C5221.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BE00
Deuteranopia (green-blind)
#DCC532
Tritanopia (blue-blind)
#E4B7A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d3c522;
/* rgb */ color: rgb(211, 197, 34);
/* oklch */ color: oklch(81.0% 0.164 104.1);
Tailwind
colors: {
  custom: {
    50: '#e5d66f',
    500: '#d3c522',
    950: '#000000',
  },
}
SCSS
$custom: #d3c522;
$custom-light: #e5d66f;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c522",
  "rgb": {
    "r": 211,
    "g": 197,
    "b": 34
  },
  "hsl": {
    "h": 55.254,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.81,
    "c": 0.16399,
    "h": 104.1
  },
  "luminance": 0.53897
}

Semantic roles & 50–950 ramp

primary
#D3C522
secondary
#262C73
accent
#47EF39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171408
muted
#85837D

Preview Lab

Preview with #D3C522

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

Preview Lab → · Contrast checker → · Palette generator →

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