#9F8F22#9F8F22

#9F8F22 is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.123 H 100.5°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F8F22
RGBrgb(159, 143, 34)
HSLhsl(52, 65%, 38%)
HSVhsv(52, 79%, 62%)
CMYKcmyk(0%, 10.1%, 78.6%, 37.6%)
CIE-LABlab(59.10, -5.87, 55.71)
CIE-LCHlch(59.10, 56.01, 96.02°)
OKLaboklab(64.54% -0.0224 0.1214)
OKLCHoklch(64.54% 0.123 100.5)
XYZxyz(24.4105, 27.1325, 5.4644)
Luminance0.2713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F22 #22329F
analogous
#9F5022 #9F8F22 #709F22
triadic
#9F8F22 #229F8F #8F229F
tetradic
#9F8F22 #229F50 #22329F #9F2270
square
#9F8F22 #229F50 #22329F #9F2270
split-complementary
#9F8F22 #22709F #50229F
monochromatic
#3A340C #6D6217 #9F8F22 #D1BC2D #DDCD5F

Accessibility & contrast

On white

3.27
#9F8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#9F8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F22
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F22#FFFFFF#000000##000000
##9F8F221.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B07
Deuteranopia (green-blind)
#A2912A
Tritanopia (blue-blind)
#AC847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f22;
/* rgb */ color: rgb(159, 143, 34);
/* oklch */ color: oklch(64.5% 0.123 100.5);
Tailwind
colors: {
  custom: {
    50: '#bfaf67',
    500: '#9f8f22',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f22;
$custom-light: #bfaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f22",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 52.32,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.6454,
    "c": 0.12347,
    "h": 100.5
  },
  "luminance": 0.27131
}

Semantic roles & 50–950 ramp

primary
#9F8F22
secondary
#5B68C1
accent
#56E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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