#9F8921#9F8921

#9F8921 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.119 H 96.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9F8921
RGBrgb(159, 137, 33)
HSLhsl(50, 66%, 38%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 13.8%, 79.2%, 37.6%)
CIE-LABlab(57.44, -2.63, 54.53)
CIE-LCHlch(57.44, 54.60, 92.77°)
OKLaboklab(63.22% -0.0134 0.1187)
OKLCHoklch(63.22% 0.119 96.4)
XYZxyz(23.5195, 25.3733, 5.0973)
Luminance0.2537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8921 #21379F
analogous
#9F4A21 #9F8921 #769F21
triadic
#9F8921 #219F89 #89219F
tetradic
#9F8921 #219F4A #21379F #9F2176
square
#9F8921 #219F4A #21379F #9F2176
split-complementary
#9F8921 #21769F #4A219F
monochromatic
#3A320C #6C5D16 #9F8921 #D2B52C #DDC75D

Accessibility & contrast

On white

3.46
#9F8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9F8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8921
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8921#FFFFFF#000000##000000
##9F89211.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988609
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#AC7E75
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9f8921;
/* rgb */ color: rgb(159, 137, 33);
/* oklch */ color: oklch(63.2% 0.119 96.4);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9f8921',
    950: '#000000',
  },
}
SCSS
$custom: #9f8921;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8921",
  "rgb": {
    "r": 159,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 49.524,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63223,
    "c": 0.11946,
    "h": 96.4
  },
  "luminance": 0.25372
}

Semantic roles & 50–950 ramp

primary
#9F8921
secondary
#5A6CC2
accent
#5DE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8921

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

Preview Lab → · Contrast checker → · Palette generator →

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