#DCB840#DCB840

#DCB840 is a light, vivid yellow. Relative luminance 0.499; OKLCH L 79.3% C 0.140 H 91.8°. Best body text is #000000 at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#DCB840
RGBrgb(220, 184, 64)
HSLhsl(46, 69%, 56%)
HSVhsv(46, 71%, 86%)
CMYKcmyk(0%, 16.4%, 70.9%, 13.7%)
CIE-LABlab(75.99, 0.51, 62.80)
CIE-LCHlch(75.99, 62.80, 89.53°)
OKLaboklab(79.33% -0.0045 0.1398)
OKLCHoklch(79.33% 0.14 91.8)
XYZxyz(47.5837, 49.8696, 11.9690)
Luminance0.4987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCB840 #4064DC
analogous
#DC6A40 #DCB840 #B2DC40
triadic
#DCB840 #40DCB8 #B840DC
tetradic
#DCB840 #40DC6A #4064DC #DC40B2
square
#DCB840 #40DC6A #4064DC #DC40B2
split-complementary
#DCB840 #40B2DC #6A40DC
monochromatic
#896F19 #BC9923 #DCB840 #E5CB74 #EFDEA7

Accessibility & contrast

On white

1.91
#DCB840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.97
#DCB840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCB840
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCB840#FFFFFF#000000##000000
##DCB8401.001.9110.9710.97
#FFFFFF1.911.0021.0021.00
#00000010.9721.001.001.00
##00000010.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB52F
Deuteranopia (green-blind)
#D5C046
Tritanopia (blue-blind)
#EEA9A0
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #dcb840;
/* rgb */ color: rgb(220, 184, 64);
/* oklch */ color: oklch(79.3% 0.140 91.8);
Tailwind
colors: {
  custom: {
    50: '#ebcc7c',
    500: '#dcb840',
    950: '#000000',
  },
}
SCSS
$custom: #dcb840;
$custom-light: #ebcc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#dcb840",
  "rgb": {
    "r": 220,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 46.154,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79329,
    "c": 0.13985,
    "h": 91.8
  },
  "luminance": 0.49867
}

Semantic roles & 50–950 ramp

primary
#DCB840
secondary
#9BAADC
accent
#65EC3C
background
#FFFCF7
surface
#FEF8EE
border
#D6D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #DCB840

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

Preview Lab → · Contrast checker → · Palette generator →

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