#DCB22F#DCB22F

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

Color values

HEX#DCB22F
RGBrgb(220, 178, 47)
HSLhsl(45, 71%, 52%)
HSVhsv(45, 79%, 86%)
CMYKcmyk(0%, 19.1%, 78.6%, 13.7%)
CIE-LABlab(74.36, 2.95, 67.42)
CIE-LCHlch(74.36, 67.49, 87.50°)
OKLaboklab(78.01% 0.0007 0.1463)
OKLCHoklch(78.01% 0.146 89.7)
XYZxyz(45.9515, 47.2647, 9.3915)
Luminance0.4726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCB22F #2F59DC
analogous
#DC5C2F #DCB22F #AFDC2F
triadic
#DCB22F #2FDCB2 #B22FDC
tetradic
#DCB22F #2FDC5C #2F59DC #DC2FAF
square
#DCB22F #2FDC5C #2F59DC #DC2FAF
split-complementary
#DCB22F #2FAFDC #5C2FDC
monochromatic
#7C6315 #B08D1E #DCB22F #E5C563 #EED998

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DCB22F#FFFFFF#000000##000000
##DCB22F1.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)
#C7B011
Deuteranopia (green-blind)
#D1BC37
Tritanopia (blue-blind)
#EFA299
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #dcb22f;
/* rgb */ color: rgb(220, 178, 47);
/* oklch */ color: oklch(78.0% 0.146 89.7);
Tailwind
colors: {
  custom: {
    50: '#ecc872',
    500: '#dcb22f',
    950: '#000000',
  },
}
SCSS
$custom: #dcb22f;
$custom-light: #ecc872;
$custom-dark: #000000;
JSON
{
  "hex": "#dcb22f",
  "rgb": {
    "r": 220,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 45.434,
    "s": 71.193,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7801,
    "c": 0.1463,
    "h": 89.7
  },
  "luminance": 0.47262
}

Semantic roles & 50–950 ramp

primary
#DCB22F
secondary
#8EA0D9
accent
#66EE3A
background
#FFFCF7
surface
#FEF8ED
border
#D6D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #DCB22F

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

Preview Lab → · Contrast checker → · Palette generator →

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