#9F8A22#9F8A22

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

Color values

HEX#9F8A22
RGBrgb(159, 138, 34)
HSLhsl(50, 65%, 38%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 13.2%, 78.6%, 37.6%)
CIE-LABlab(57.72, -3.14, 54.45)
CIE-LCHlch(57.72, 54.54, 93.31°)
OKLaboklab(63.45% -0.0147 0.1187)
OKLCHoklch(63.45% 0.12 97.1)
XYZxyz(23.6765, 25.6647, 5.2197)
Luminance0.2566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A22 #22379F
analogous
#9F4B22 #9F8A22 #759F22
triadic
#9F8A22 #229F8A #8A229F
tetradic
#9F8A22 #229F4B #22379F #9F2275
square
#9F8A22 #229F4B #22379F #9F2275
split-complementary
#9F8A22 #22759F #4B229F
monochromatic
#3A320C #6D5E17 #9F8A22 #D1B62D #DDC85F

Accessibility & contrast

On white

3.42
#9F8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8A22#FFFFFF#000000##000000
##9F8A221.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870B
Deuteranopia (green-blind)
#9E8E29
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a22;
/* rgb */ color: rgb(159, 138, 34);
/* oklch */ color: oklch(63.4% 0.120 97.1);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9f8a22',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a22;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a22",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 49.92,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63446,
    "c": 0.11964,
    "h": 97.1
  },
  "luminance": 0.25663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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