#9F8E22#9F8E22

#9F8E22 is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.123 H 99.8°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9F8E22
RGBrgb(159, 142, 34)
HSLhsl(52, 65%, 38%)
HSVhsv(52, 79%, 62%)
CMYKcmyk(0%, 10.7%, 78.6%, 37.6%)
CIE-LABlab(58.82, -5.33, 55.45)
CIE-LCHlch(58.82, 55.71, 95.49°)
OKLaboklab(64.32% -0.0209 0.1209)
OKLCHoklch(64.32% 0.123 99.8)
XYZxyz(24.2610, 26.8336, 5.4146)
Luminance0.2683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E22 #22339F
analogous
#9F4F22 #9F8E22 #719F22
triadic
#9F8E22 #229F8E #8E229F
tetradic
#9F8E22 #229F4F #22339F #9F2271
square
#9F8E22 #229F4F #22339F #9F2271
split-complementary
#9F8E22 #22719F #4F229F
monochromatic
#3A340C #6D6117 #9F8E22 #D1BB2D #DDCC5F

Accessibility & contrast

On white

3.30
#9F8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#9F8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E22
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E22#FFFFFF#000000##000000
##9F8E221.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A08
Deuteranopia (green-blind)
#A1902A
Tritanopia (blue-blind)
#AC837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8e22;
/* rgb */ color: rgb(159, 142, 34);
/* oklch */ color: oklch(64.3% 0.123 99.8);
Tailwind
colors: {
  custom: {
    50: '#bfae67',
    500: '#9f8e22',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e22;
$custom-light: #bfae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e22",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 51.84,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.6432,
    "c": 0.12267,
    "h": 99.8
  },
  "luminance": 0.26832
}

Semantic roles & 50–950 ramp

primary
#9F8E22
secondary
#5B69C1
accent
#57E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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