#D3C122#D3C122

#D3C122 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.161 H 102.3°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#D3C122
RGBrgb(211, 193, 34)
HSLhsl(54, 72%, 48%)
HSVhsv(54, 84%, 83%)
CMYKcmyk(0%, 8.5%, 83.9%, 17.3%)
CIE-LABlab(77.34, -9.14, 73.38)
CIE-LCHlch(77.34, 73.95, 97.10°)
OKLaboklab(80.16% -0.0341 0.1571)
OKLCHoklch(80.16% 0.161 102.3)
XYZxyz(46.2250, 52.1065, 9.1358)
Luminance0.5210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C122 #2234D3
analogous
#D36822 #D3C122 #8DD322
triadic
#D3C122 #22D3C1 #C122D3
tetradic
#D3C122 #22D368 #2234D3 #D3228D
square
#D3C122 #22D368 #2234D3 #D3228D
split-complementary
#D3C122 #228DD3 #6822D3
monochromatic
#6A6111 #9E911A #D3C122 #E3D44F #EBE184

Accessibility & contrast

On white

1.84
#D3C122 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#D3C122 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C122
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C122#FFFFFF#000000##000000
##D3C1221.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB00
Deuteranopia (green-blind)
#D9C231
Tritanopia (blue-blind)
#E4B2A5
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d3c122;
/* rgb */ color: rgb(211, 193, 34);
/* oklch */ color: oklch(80.2% 0.161 102.3);
Tailwind
colors: {
  custom: {
    50: '#e5d36f',
    500: '#d3c122',
    950: '#000000',
  },
}
SCSS
$custom: #d3c122;
$custom-light: #e5d36f;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c122",
  "rgb": {
    "r": 211,
    "g": 193,
    "b": 34
  },
  "hsl": {
    "h": 53.898,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.80159,
    "c": 0.1608,
    "h": 102.3
  },
  "luminance": 0.52104
}

Semantic roles & 50–950 ramp

primary
#D3C122
secondary
#262E73
accent
#4BEF39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171408
muted
#85837D

Preview Lab

Preview with #D3C122

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

Preview Lab → · Contrast checker → · Palette generator →

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