#9F8F20#9F8F20

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

Color values

HEX#9F8F20
RGBrgb(159, 143, 32)
HSLhsl(52, 66%, 37%)
HSVhsv(52, 80%, 62%)
CMYKcmyk(0%, 10.1%, 79.9%, 37.6%)
CIE-LABlab(59.09, -5.95, 56.36)
CIE-LCHlch(59.09, 56.67, 96.03°)
OKLaboklab(64.53% -0.0228 0.1224)
OKLCHoklch(64.53% 0.125 100.6)
XYZxyz(24.3825, 27.1213, 5.3169)
Luminance0.2712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F20 #20309F
analogous
#9F5020 #9F8F20 #6F9F20
triadic
#9F8F20 #209F8F #8F209F
tetradic
#9F8F20 #209F50 #20309F #9F206F
square
#9F8F20 #209F50 #20309F #9F206F
split-complementary
#9F8F20 #206F9F #50209F
monochromatic
#39330B #6C6116 #9F8F20 #D2BD2A #DECE5B

Accessibility & contrast

On white

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

On black

6.42
#9F8F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F20
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F20#FFFFFF#000000##000000
##9F8F201.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B02
Deuteranopia (green-blind)
#A29128
Tritanopia (blue-blind)
#AC847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f20;
/* rgb */ color: rgb(159, 143, 32);
/* oklch */ color: oklch(64.5% 0.125 100.6);
Tailwind
colors: {
  custom: {
    50: '#bfaf66',
    500: '#9f8f20',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f20;
$custom-light: #bfaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f20",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 52.441,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.64528,
    "c": 0.12452,
    "h": 100.6
  },
  "luminance": 0.2712
}

Semantic roles & 50–950 ramp

primary
#9F8F20
secondary
#5966C2
accent
#54E93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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