#9F8B22#9F8B22

#9F8B22 is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.7% C 0.120 H 97.8°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9F8B22
RGBrgb(159, 139, 34)
HSLhsl(50, 65%, 38%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 12.6%, 78.6%, 37.6%)
CIE-LABlab(57.99, -3.69, 54.70)
CIE-LCHlch(57.99, 54.82, 93.86°)
OKLaboklab(63.66% -0.0163 0.1193)
OKLCHoklch(63.66% 0.12 97.8)
XYZxyz(23.8207, 25.9529, 5.2678)
Luminance0.2595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B22 #22369F
analogous
#9F4C22 #9F8B22 #749F22
triadic
#9F8B22 #229F8B #8B229F
tetradic
#9F8B22 #229F4C #22369F #9F2274
square
#9F8B22 #229F4C #22369F #9F2274
split-complementary
#9F8B22 #22749F #4C229F
monochromatic
#3A330C #6D5F17 #9F8B22 #D1B72D #DDC95F

Accessibility & contrast

On white

3.39
#9F8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#9F8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B22
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B22#FFFFFF#000000##000000
##9F8B221.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A880A
Deuteranopia (green-blind)
#9F8E29
Tritanopia (blue-blind)
#AC8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b22;
/* rgb */ color: rgb(159, 139, 34);
/* oklch */ color: oklch(63.7% 0.120 97.8);
Tailwind
colors: {
  custom: {
    50: '#bfac66',
    500: '#9f8b22',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b22;
$custom-light: #bfac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b22",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 50.4,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63664,
    "c": 0.12036,
    "h": 97.8
  },
  "luminance": 0.25952
}

Semantic roles & 50–950 ramp

primary
#9F8B22
secondary
#5B6CC1
accent
#5BE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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