#DCB231#DCB231

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

Color values

HEX#DCB231
RGBrgb(220, 178, 49)
HSLhsl(45, 71%, 53%)
HSVhsv(45, 78%, 86%)
CMYKcmyk(0%, 19.1%, 77.7%, 13.7%)
CIE-LABlab(74.37, 3.02, 66.77)
CIE-LCHlch(74.37, 66.83, 87.41°)
OKLaboklab(78.02% 0.0011 0.1453)
OKLCHoklch(78.02% 0.145 89.6)
XYZxyz(45.9928, 47.2812, 9.6089)
Luminance0.4728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCB231 #315BDC
analogous
#DC5C31 #DCB231 #B1DC31
triadic
#DCB231 #31DCB2 #B231DC
tetradic
#DCB231 #31DC5C #315BDC #DC31B1
square
#DCB231 #31DC5C #315BDC #DC31B1
split-complementary
#DCB231 #31B1DC #5C31DC
monochromatic
#7D6415 #B28D1E #DCB231 #E5C665 #EED99A

Accessibility & contrast

On white

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

On black

10.46
#DCB231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCB231
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCB231#FFFFFF#000000##000000
##DCB2311.002.0110.4610.46
#FFFFFF2.011.0021.0021.00
#00000010.4621.001.001.00
##00000010.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B016
Deuteranopia (green-blind)
#D1BC39
Tritanopia (blue-blind)
#EEA299
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #dcb231;
/* rgb */ color: rgb(220, 178, 49);
/* oklch */ color: oklch(78.0% 0.145 89.6);
Tailwind
colors: {
  custom: {
    50: '#ecc873',
    500: '#dcb231',
    950: '#000000',
  },
}
SCSS
$custom: #dcb231;
$custom-light: #ecc873;
$custom-dark: #000000;
JSON
{
  "hex": "#dcb231",
  "rgb": {
    "r": 220,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 45.263,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.78022,
    "c": 0.1453,
    "h": 89.6
  },
  "luminance": 0.47278
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DCB231

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

Preview Lab → · Contrast checker → · Palette generator →

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