#DCB940#DCB940

#DCB940 is a light, vivid yellow. Relative luminance 0.503; OKLCH L 79.5% C 0.140 H 92.5°. Best body text is #000000 at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#DCB940
RGBrgb(220, 185, 64)
HSLhsl(47, 69%, 56%)
HSVhsv(47, 71%, 86%)
CMYKcmyk(0%, 15.9%, 70.9%, 13.7%)
CIE-LABlab(76.24, -0.01, 63.05)
CIE-LCHlch(76.24, 63.05, 90.01°)
OKLaboklab(79.53% -0.006 0.1403)
OKLCHoklch(79.53% 0.14 92.5)
XYZxyz(47.7921, 50.2865, 12.0385)
Luminance0.5028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCB940 #4063DC
analogous
#DC6B40 #DCB940 #B1DC40
triadic
#DCB940 #40DCB9 #B940DC
tetradic
#DCB940 #40DC6B #4063DC #DC40B1
square
#DCB940 #40DC6B #4063DC #DC40B1
split-complementary
#DCB940 #40B1DC #6B40DC
monochromatic
#897019 #BC9A23 #DCB940 #E5CC74 #EFDFA7

Accessibility & contrast

On white

1.90
#DCB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.06
#DCB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCB940
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCB940#FFFFFF#000000##000000
##DCB9401.001.9011.0611.06
#FFFFFF1.901.0021.0021.00
#00000011.0621.001.001.00
##00000011.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#D5C046
Tritanopia (blue-blind)
#EEAAA1
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #dcb940;
/* rgb */ color: rgb(220, 185, 64);
/* oklch */ color: oklch(79.5% 0.140 92.5);
Tailwind
colors: {
  custom: {
    50: '#ebcd7c',
    500: '#dcb940',
    950: '#000000',
  },
}
SCSS
$custom: #dcb940;
$custom-light: #ebcd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#dcb940",
  "rgb": {
    "r": 220,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 46.538,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79531,
    "c": 0.14046,
    "h": 92.5
  },
  "luminance": 0.50284
}

Semantic roles & 50–950 ramp

primary
#DCB940
secondary
#32478F
accent
#63EC3C
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #DCB940

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

Preview Lab → · Contrast checker → · Palette generator →

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