#9F8922#9F8922

#9F8922 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.119 H 96.3°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9F8922
RGBrgb(159, 137, 34)
HSLhsl(49, 65%, 38%)
HSVhsv(49, 79%, 62%)
CMYKcmyk(0%, 13.8%, 78.6%, 37.6%)
CIE-LABlab(57.44, -2.59, 54.19)
CIE-LCHlch(57.44, 54.26, 92.74°)
OKLaboklab(63.23% -0.0131 0.1182)
OKLCHoklch(63.23% 0.119 96.3)
XYZxyz(23.5337, 25.3790, 5.1721)
Luminance0.2538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8922 #22389F
analogous
#9F4A22 #9F8922 #769F22
triadic
#9F8922 #229F89 #89229F
tetradic
#9F8922 #229F4A #22389F #9F2276
square
#9F8922 #229F4A #22389F #9F2276
split-complementary
#9F8922 #22769F #4A229F
monochromatic
#3A320C #6D5E17 #9F8922 #D1B42D #DDC75F

Accessibility & contrast

On white

3.46
#9F8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9F8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8922
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8922#FFFFFF#000000##000000
##9F89221.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#9D8D29
Tritanopia (blue-blind)
#AC7E75
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9f8922;
/* rgb */ color: rgb(159, 137, 34);
/* oklch */ color: oklch(63.2% 0.119 96.3);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9f8922',
    950: '#000000',
  },
}
SCSS
$custom: #9f8922;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8922",
  "rgb": {
    "r": 159,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 49.44,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63229,
    "c": 0.11892,
    "h": 96.3
  },
  "luminance": 0.25378
}

Semantic roles & 50–950 ramp

primary
#9F8922
secondary
#5B6DC1
accent
#5EE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8922

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

Preview Lab → · Contrast checker → · Palette generator →

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