#D3C222#D3C222

#D3C222 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.4% C 0.162 H 102.7°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#D3C222
RGBrgb(211, 194, 34)
HSLhsl(54, 72%, 48%)
HSVhsv(54, 84%, 83%)
CMYKcmyk(0%, 8.1%, 83.9%, 17.3%)
CIE-LABlab(77.61, -9.66, 73.60)
CIE-LCHlch(77.61, 74.23, 97.47°)
OKLaboklab(80.37% -0.0355 0.1576)
OKLCHoklch(80.37% 0.162 102.7)
XYZxyz(46.4468, 52.5501, 9.2097)
Luminance0.5255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C222 #2233D3
analogous
#D36922 #D3C222 #8CD322
triadic
#D3C222 #22D3C2 #C222D3
tetradic
#D3C222 #22D369 #2233D3 #D3228C
square
#D3C222 #22D369 #2233D3 #D3228C
split-complementary
#D3C222 #228CD3 #6922D3
monochromatic
#6A6111 #9E921A #D3C222 #E3D54F #EBE184

Accessibility & contrast

On white

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

On black

11.51
#D3C222 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C222
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C222#FFFFFF#000000##000000
##D3C2221.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#DAC331
Tritanopia (blue-blind)
#E4B3A6
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d3c222;
/* rgb */ color: rgb(211, 194, 34);
/* oklch */ color: oklch(80.4% 0.162 102.7);
Tailwind
colors: {
  custom: {
    50: '#e5d46f',
    500: '#d3c222',
    950: '#000000',
  },
}
SCSS
$custom: #d3c222;
$custom-light: #e5d46f;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c222",
  "rgb": {
    "r": 211,
    "g": 194,
    "b": 34
  },
  "hsl": {
    "h": 54.237,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.80369,
    "c": 0.16159,
    "h": 102.7
  },
  "luminance": 0.52548
}

Semantic roles & 50–950 ramp

primary
#D3C222
secondary
#262D73
accent
#4AEF39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171408
muted
#85837D

Preview Lab

Preview with #D3C222

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

Preview Lab → · Contrast checker → · Palette generator →

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