#9F8F21#9F8F21

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

Color values

HEX#9F8F21
RGBrgb(159, 143, 33)
HSLhsl(52, 66%, 38%)
HSVhsv(52, 79%, 62%)
CMYKcmyk(0%, 10.1%, 79.2%, 37.6%)
CIE-LABlab(59.09, -5.91, 56.03)
CIE-LCHlch(59.09, 56.35, 96.02°)
OKLaboklab(64.53% -0.0226 0.1219)
OKLCHoklch(64.53% 0.124 100.5)
XYZxyz(24.3963, 27.1268, 5.3895)
Luminance0.2713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F21 #21319F
analogous
#9F5021 #9F8F21 #709F21
triadic
#9F8F21 #219F8F #8F219F
tetradic
#9F8F21 #219F50 #21319F #9F2170
square
#9F8F21 #219F50 #21319F #9F2170
split-complementary
#9F8F21 #21709F #50219F
monochromatic
#3A340C #6C6116 #9F8F21 #D2BD2C #DDCD5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8F21#FFFFFF#000000##000000
##9F8F211.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)
#9D8B05
Deuteranopia (green-blind)
#A29129
Tritanopia (blue-blind)
#AC847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f21;
/* rgb */ color: rgb(159, 143, 33);
/* oklch */ color: oklch(64.5% 0.124 100.5);
Tailwind
colors: {
  custom: {
    50: '#bfaf66',
    500: '#9f8f21',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f21;
$custom-light: #bfaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f21",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 52.381,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.64534,
    "c": 0.124,
    "h": 100.5
  },
  "luminance": 0.27126
}

Semantic roles & 50–950 ramp

primary
#9F8F21
secondary
#5A67C2
accent
#55E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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