#9C8227#9C8227

#9C8227 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.111 H 92.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9C8227
RGBrgb(156, 130, 39)
HSLhsl(47, 60%, 38%)
HSVhsv(47, 75%, 61%)
CMYKcmyk(0%, 16.7%, 75%, 38.8%)
CIE-LABlab(55.26, 0.13, 50.15)
CIE-LCHlch(55.26, 50.15, 89.85°)
OKLaboklab(61.44% -0.0047 0.1108)
OKLCHoklch(61.44% 0.111 92.4)
XYZxyz(22.0604, 23.1810, 5.2315)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8227 #27419C
analogous
#9C4827 #9C8227 #7B9C27
triadic
#9C8227 #279C82 #82279C
tetradic
#9C8227 #279C48 #27419C #9C277B
square
#9C8227 #279C48 #27419C #9C277B
split-complementary
#9C8227 #277B9C #48279C
monochromatic
#3A300F #6B591B #9C8227 #CCAA34 #D8BF65

Accessibility & contrast

On white

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

On black

5.64
#9C8227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8227
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8227#FFFFFF#000000##000000
##9C82271.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918018
Deuteranopia (green-blind)
#97872C
Tritanopia (blue-blind)
#A97770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c8227;
/* rgb */ color: rgb(156, 130, 39);
/* oklch */ color: oklch(61.4% 0.111 92.4);
Tailwind
colors: {
  custom: {
    50: '#bda668',
    500: '#9c8227',
    950: '#000000',
  },
}
SCSS
$custom: #9c8227;
$custom-light: #bda668;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8227",
  "rgb": {
    "r": 156,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 46.667,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.61442,
    "c": 0.11085,
    "h": 92.4
  },
  "luminance": 0.2318
}

Semantic roles & 50–950 ramp

primary
#9C8227
secondary
#6175BE
accent
#68E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C8227

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

Preview Lab → · Contrast checker → · Palette generator →

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