#9F9A22#9F9A22

#9F9A22 is a light, vivid yellow. Relative luminance 0.306; OKLCH L 67.0% C 0.133 H 107.0°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9F9A22
RGBrgb(159, 154, 34)
HSLhsl(58, 65%, 38%)
HSVhsv(58, 79%, 62%)
CMYKcmyk(0%, 3.1%, 78.6%, 37.6%)
CIE-LABlab(62.17, -11.76, 58.49)
CIE-LCHlch(62.17, 59.66, 101.37°)
OKLaboklab(66.98% -0.0389 0.1274)
OKLCHoklch(66.98% 0.133 107)
XYZxyz(26.1435, 30.5986, 6.0421)
Luminance0.3060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9A22 #22279F
analogous
#9F5B22 #9F9A22 #659F22
triadic
#9F9A22 #229F9A #9A229F
tetradic
#9F9A22 #229F5B #22279F #9F2265
square
#9F9A22 #229F5B #22279F #9F2265
split-complementary
#9F9A22 #22659F #5B229F
monochromatic
#3A380C #6D6917 #9F9A22 #D1CB2D #DDD85F

Accessibility & contrast

On white

2.95
#9F9A22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#9F9A22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9A22
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9A22#FFFFFF#000000##000000
##9F9A221.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#AA982C
Tritanopia (blue-blind)
#AB8F84
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9f9a22;
/* rgb */ color: rgb(159, 154, 34);
/* oklch */ color: oklch(67.0% 0.133 107.0);
Tailwind
colors: {
  custom: {
    50: '#bfb768',
    500: '#9f9a22',
    950: '#000000',
  },
}
SCSS
$custom: #9f9a22;
$custom-light: #bfb768;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9a22",
  "rgb": {
    "r": 159,
    "g": 154,
    "b": 34
  },
  "hsl": {
    "h": 57.6,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.66983,
    "c": 0.13319,
    "h": 107
  },
  "luminance": 0.30598
}

Semantic roles & 50–950 ramp

primary
#9F9A22
secondary
#5B5FC1
accent
#47E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9A22

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

Preview Lab → · Contrast checker → · Palette generator →

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