#DCB22D#DCB22D

#DCB22D is a light, vivid yellow. Relative luminance 0.472; OKLCH L 78.0% C 0.147 H 89.9°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#DCB22D
RGBrgb(220, 178, 45)
HSLhsl(46, 71%, 52%)
HSVhsv(46, 80%, 86%)
CMYKcmyk(0%, 19.1%, 79.5%, 13.7%)
CIE-LABlab(74.35, 2.88, 68.06)
CIE-LCHlch(74.35, 68.12, 87.58°)
OKLaboklab(78% 0.0003 0.1473)
OKLCHoklch(78% 0.147 89.9)
XYZxyz(45.9121, 47.2489, 9.1839)
Luminance0.4725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCB22D #2D57DC
analogous
#DC5B2D #DCB22D #AFDC2D
triadic
#DCB22D #2DDCB2 #B22DDC
tetradic
#DCB22D #2DDC5B #2D57DC #DC2DAF
square
#DCB22D #2DDC5B #2D57DC #DC2DAF
split-complementary
#DCB22D #2DAFDC #5B2DDC
monochromatic
#7A6214 #AF8C1D #DCB22D #E5C561 #EDD896

Accessibility & contrast

On white

2.01
#DCB22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#DCB22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCB22D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCB22D#FFFFFF#000000##000000
##DCB22D1.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B00B
Deuteranopia (green-blind)
#D1BC35
Tritanopia (blue-blind)
#EFA299
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #dcb22d;
/* rgb */ color: rgb(220, 178, 45);
/* oklch */ color: oklch(78.0% 0.147 89.9);
Tailwind
colors: {
  custom: {
    50: '#ecc871',
    500: '#dcb22d',
    950: '#000000',
  },
}
SCSS
$custom: #dcb22d;
$custom-light: #ecc871;
$custom-dark: #000000;
JSON
{
  "hex": "#dcb22d",
  "rgb": {
    "r": 220,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 45.6,
    "s": 71.429,
    "l": 51.961
  },
  "oklch": {
    "l": 0.77999,
    "c": 0.14726,
    "h": 89.9
  },
  "luminance": 0.47246
}

Semantic roles & 50–950 ramp

primary
#DCB22D
secondary
#8C9ED9
accent
#65EE3A
background
#FFFCF7
surface
#FEF8ED
border
#D6D1C8
text
#171308
muted
#85827B

Preview Lab

Preview with #DCB22D

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

Preview Lab → · Contrast checker → · Palette generator →

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