#9C8B22#9C8B22

#9C8B22 is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.120 H 99.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9C8B22
RGBrgb(156, 139, 34)
HSLhsl(52, 64%, 37%)
HSVhsv(52, 78%, 61%)
CMYKcmyk(0%, 10.9%, 78.2%, 38.8%)
CIE-LABlab(57.70, -5.06, 54.33)
CIE-LCHlch(57.70, 54.56, 95.32°)
OKLaboklab(63.37% -0.02 0.1186)
OKLCHoklch(63.37% 0.12 99.6)
XYZxyz(23.2328, 25.6498, 5.2402)
Luminance0.2565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8B22 #22339C
analogous
#9C4E22 #9C8B22 #709C22
triadic
#9C8B22 #229C8B #8B229C
tetradic
#9C8B22 #229C4E #22339C #9C2270
square
#9C8B22 #229C4E #22339C #9C2270
split-complementary
#9C8B22 #22709C #4E229C
monochromatic
#38310C #6A5E17 #9C8B22 #CEB82D #DCCA5D

Accessibility & contrast

On white

3.43
#9C8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9C8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8B22
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8B22#FFFFFF#000000##000000
##9C8B221.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870A
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#A98077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9c8b22;
/* rgb */ color: rgb(156, 139, 34);
/* oklch */ color: oklch(63.4% 0.120 99.6);
Tailwind
colors: {
  custom: {
    50: '#bdac66',
    500: '#9c8b22',
    950: '#000000',
  },
}
SCSS
$custom: #9c8b22;
$custom-light: #bdac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8b22",
  "rgb": {
    "r": 156,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 51.639,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63367,
    "c": 0.12028,
    "h": 99.6
  },
  "luminance": 0.25649
}

Semantic roles & 50–950 ramp

primary
#9C8B22
secondary
#5A68C0
accent
#58E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9C8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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