#9F8B21#9F8B21

#9F8B21 is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.7% C 0.121 H 97.8°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9F8B21
RGBrgb(159, 139, 33)
HSLhsl(50, 66%, 38%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 12.6%, 79.2%, 37.6%)
CIE-LABlab(57.99, -3.73, 55.03)
CIE-LCHlch(57.99, 55.16, 93.88°)
OKLaboklab(63.66% -0.0165 0.1198)
OKLCHoklch(63.66% 0.121 97.8)
XYZxyz(23.8065, 25.9472, 5.1929)
Luminance0.2595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B21 #21359F
analogous
#9F4C21 #9F8B21 #749F21
triadic
#9F8B21 #219F8B #8B219F
tetradic
#9F8B21 #219F4C #21359F #9F2174
square
#9F8B21 #219F4C #21359F #9F2174
split-complementary
#9F8B21 #21749F #4C219F
monochromatic
#3A320C #6C5F16 #9F8B21 #D2B72C #DDC95D

Accessibility & contrast

On white

3.39
#9F8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#9F8B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B21
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B21#FFFFFF#000000##000000
##9F8B211.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8707
Deuteranopia (green-blind)
#9F8E29
Tritanopia (blue-blind)
#AC8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b21;
/* rgb */ color: rgb(159, 139, 33);
/* oklch */ color: oklch(63.7% 0.121 97.8);
Tailwind
colors: {
  custom: {
    50: '#bfac66',
    500: '#9f8b21',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b21;
$custom-light: #bfac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b21",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 50.476,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63658,
    "c": 0.12091,
    "h": 97.8
  },
  "luminance": 0.25946
}

Semantic roles & 50–950 ramp

primary
#9F8B21
secondary
#5A6AC2
accent
#5AE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8B21

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

Preview Lab → · Contrast checker → · Palette generator →

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