#9C802B#9C802B

#9C802B is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 61.0% C 0.107 H 90.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9C802B
RGBrgb(156, 128, 43)
HSLhsl(45, 57%, 39%)
HSVhsv(45, 72%, 61%)
CMYKcmyk(0%, 17.9%, 72.4%, 38.8%)
CIE-LABlab(54.74, 1.45, 47.99)
CIE-LCHlch(54.74, 48.01, 88.27°)
OKLaboklab(61.04% -0.0004 0.107)
OKLCHoklch(61.04% 0.107 90.2)
XYZxyz(21.8667, 22.6820, 5.5114)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C802B #2B479C
analogous
#9C482B #9C802B #809C2B
triadic
#9C802B #2B9C80 #802B9C
tetradic
#9C802B #2B9C48 #2B479C #9C2B80
square
#9C802B #2B9C48 #2B479C #9C2B80
split-complementary
#9C802B #2B809C #482B9C
monochromatic
#3C3111 #6C591E #9C802B #C9A63B #D6BC6B

Accessibility & contrast

On white

3.79
#9C802B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#9C802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C802B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C802B#FFFFFF#000000##000000
##9C802B1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1F
Deuteranopia (green-blind)
#95862F
Tritanopia (blue-blind)
#A9756F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9c802b;
/* rgb */ color: rgb(156, 128, 43);
/* oklch */ color: oklch(61.0% 0.107 90.2);
Tailwind
colors: {
  custom: {
    50: '#bda46a',
    500: '#9c802b',
    950: '#000000',
  },
}
SCSS
$custom: #9c802b;
$custom-light: #bda46a;
$custom-dark: #000000;
JSON
{
  "hex": "#9c802b",
  "rgb": {
    "r": 156,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 45.133,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.61044,
    "c": 0.10696,
    "h": 90.2
  },
  "luminance": 0.22681
}

Semantic roles & 50–950 ramp

primary
#9C802B
secondary
#667BBD
accent
#6DE048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9C802B

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

Preview Lab → · Contrast checker → · Palette generator →

#9C802B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva