#9F8D22#9F8D22

#9F8D22 is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.122 H 99.1°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9F8D22
RGBrgb(159, 141, 34)
HSLhsl(51, 65%, 38%)
HSVhsv(51, 79%, 62%)
CMYKcmyk(0%, 11.3%, 78.6%, 37.6%)
CIE-LABlab(58.54, -4.78, 55.20)
CIE-LCHlch(58.54, 55.41, 94.95°)
OKLaboklab(64.1% -0.0193 0.1203)
OKLCHoklch(64.1% 0.122 99.1)
XYZxyz(24.1129, 26.5374, 5.3652)
Luminance0.2654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D22 #22349F
analogous
#9F4E22 #9F8D22 #729F22
triadic
#9F8D22 #229F8D #8D229F
tetradic
#9F8D22 #229F4E #22349F #9F2272
square
#9F8D22 #229F4E #22349F #9F2272
split-complementary
#9F8D22 #22729F #4E229F
monochromatic
#3A340C #6D6017 #9F8D22 #D1BA2D #DDCB5F

Accessibility & contrast

On white

3.33
#9F8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#9F8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D22
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D22#FFFFFF#000000##000000
##9F8D221.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8909
Deuteranopia (green-blind)
#A0902A
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d22;
/* rgb */ color: rgb(159, 141, 34);
/* oklch */ color: oklch(64.1% 0.122 99.1);
Tailwind
colors: {
  custom: {
    50: '#bfae66',
    500: '#9f8d22',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d22;
$custom-light: #bfae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d22",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 51.36,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.64101,
    "c": 0.12189,
    "h": 99.1
  },
  "luminance": 0.26536
}

Semantic roles & 50–950 ramp

primary
#9F8D22
secondary
#5B6AC1
accent
#58E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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