#9F8A21#9F8A21

#9F8A21 is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.120 H 97.1°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9F8A21
RGBrgb(159, 138, 33)
HSLhsl(50, 66%, 38%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 13.2%, 79.2%, 37.6%)
CIE-LABlab(57.71, -3.18, 54.78)
CIE-LCHlch(57.71, 54.88, 93.33°)
OKLaboklab(63.44% -0.0149 0.1192)
OKLCHoklch(63.44% 0.12 97.1)
XYZxyz(23.6623, 25.6590, 5.1449)
Luminance0.2566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A21 #21369F
analogous
#9F4B21 #9F8A21 #759F21
triadic
#9F8A21 #219F8A #8A219F
tetradic
#9F8A21 #219F4B #21369F #9F2175
square
#9F8A21 #219F4B #21369F #9F2175
split-complementary
#9F8A21 #21759F #4B219F
monochromatic
#3A320C #6C5E16 #9F8A21 #D2B62C #DDC85D

Accessibility & contrast

On white

3.42
#9F8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9F8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A21
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A21#FFFFFF#000000##000000
##9F8A211.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9E8E28
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a21;
/* rgb */ color: rgb(159, 138, 33);
/* oklch */ color: oklch(63.4% 0.120 97.1);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a21;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a21",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 50,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.6344,
    "c": 0.12017,
    "h": 97.1
  },
  "luminance": 0.25658
}

Semantic roles & 50–950 ramp

primary
#9F8A21
secondary
#5A6BC2
accent
#5BE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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