#9F8322#9F8322

#9F8322 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.9% C 0.115 H 91.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9F8322
RGBrgb(159, 131, 34)
HSLhsl(47, 65%, 38%)
HSVhsv(47, 79%, 62%)
CMYKcmyk(0%, 17.6%, 78.6%, 37.6%)
CIE-LABlab(55.81, 0.73, 52.69)
CIE-LCHlch(55.81, 52.69, 89.21°)
OKLaboklab(61.94% -0.0037 0.115)
OKLCHoklch(61.94% 0.115 91.8)
XYZxyz(22.7044, 23.7204, 4.8957)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8322 #223E9F
analogous
#9F4422 #9F8322 #7C9F22
triadic
#9F8322 #229F83 #83229F
tetradic
#9F8322 #229F44 #223E9F #9F227C
square
#9F8322 #229F44 #223E9F #9F227C
split-complementary
#9F8322 #227C9F #44229F
monochromatic
#3A300C #6D5917 #9F8322 #D1AD2D #DDC05F

Accessibility & contrast

On white

3.66
#9F8322 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#9F8322 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8322
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8322#FFFFFF#000000##000000
##9F83221.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810E
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#AC7870
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8322;
/* rgb */ color: rgb(159, 131, 34);
/* oklch */ color: oklch(61.9% 0.115 91.8);
Tailwind
colors: {
  custom: {
    50: '#bfa665',
    500: '#9f8322',
    950: '#000000',
  },
}
SCSS
$custom: #9f8322;
$custom-light: #bfa665;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8322",
  "rgb": {
    "r": 159,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 46.56,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61936,
    "c": 0.11502,
    "h": 91.8
  },
  "luminance": 0.23719
}

Semantic roles & 50–950 ramp

primary
#9F8322
secondary
#5B72C1
accent
#66E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8322

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

Preview Lab → · Contrast checker → · Palette generator →

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