#9C8222#9C8222

#9C8222 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.4% C 0.114 H 93.0°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9C8222
RGBrgb(156, 130, 34)
HSLhsl(47, 64%, 37%)
HSVhsv(47, 78%, 61%)
CMYKcmyk(0%, 16.7%, 78.2%, 38.8%)
CIE-LABlab(55.23, -0.10, 52.04)
CIE-LCHlch(55.23, 52.04, 90.10°)
OKLaboklab(61.41% -0.0059 0.1137)
OKLCHoklch(61.41% 0.114 93)
XYZxyz(21.9829, 23.1500, 4.8236)
Luminance0.2315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8222 #223C9C
analogous
#9C4522 #9C8222 #799C22
triadic
#9C8222 #229C82 #82229C
tetradic
#9C8222 #229C45 #223C9C #9C2279
square
#9C8222 #229C45 #223C9C #9C2279
split-complementary
#9C8222 #22799C #45229C
monochromatic
#382E0C #6A5817 #9C8222 #CEAC2D #DCC15D

Accessibility & contrast

On white

3.73
#9C8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#9C8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8222
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8222#FFFFFF#000000##000000
##9C82221.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800F
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#A97770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c8222;
/* rgb */ color: rgb(156, 130, 34);
/* oklch */ color: oklch(61.4% 0.114 93.0);
Tailwind
colors: {
  custom: {
    50: '#bda565',
    500: '#9c8222',
    950: '#000000',
  },
}
SCSS
$custom: #9c8222;
$custom-light: #bda565;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8222",
  "rgb": {
    "r": 156,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 47.213,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61406,
    "c": 0.11387,
    "h": 93
  },
  "luminance": 0.23149
}

Semantic roles & 50–950 ramp

primary
#9C8222
secondary
#5A6FC0
accent
#64E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C8222

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

Preview Lab → · Contrast checker → · Palette generator →

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