#9C7F22#9C7F22

#9C7F22 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.8% C 0.112 H 90.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9C7F22
RGBrgb(156, 127, 34)
HSLhsl(46, 64%, 37%)
HSVhsv(46, 78%, 61%)
CMYKcmyk(0%, 18.6%, 78.2%, 38.8%)
CIE-LABlab(54.41, 1.58, 51.28)
CIE-LCHlch(54.41, 51.30, 88.23°)
OKLaboklab(60.76% -0.0011 0.1121)
OKLCHoklch(60.76% 0.112 90.6)
XYZxyz(21.5897, 22.3635, 4.6925)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C7F22 #223F9C
analogous
#9C4222 #9C7F22 #7C9C22
triadic
#9C7F22 #229C7F #7F229C
tetradic
#9C7F22 #229C42 #223F9C #9C227C
square
#9C7F22 #229C42 #223F9C #9C227C
split-complementary
#9C7F22 #227C9C #42229C
monochromatic
#382D0C #6A5617 #9C7F22 #CEA82D #DCBD5D

Accessibility & contrast

On white

3.84
#9C7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#9C7F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C7F22
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C7F22#FFFFFF#000000##000000
##9C7F221.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#958627
Tritanopia (blue-blind)
#A9746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9c7f22;
/* rgb */ color: rgb(156, 127, 34);
/* oklch */ color: oklch(60.8% 0.112 90.6);
Tailwind
colors: {
  custom: {
    50: '#bda365',
    500: '#9c7f22',
    950: '#000000',
  },
}
SCSS
$custom: #9c7f22;
$custom-light: #bda365;
$custom-dark: #000000;
JSON
{
  "hex": "#9c7f22",
  "rgb": {
    "r": 156,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 45.738,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60763,
    "c": 0.11211,
    "h": 90.6
  },
  "luminance": 0.22362
}

Semantic roles & 50–950 ramp

primary
#9C7F22
secondary
#5A72C0
accent
#68E741
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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