#9F9A20#9F9A20

#9F9A20 is a light, vivid yellow. Relative luminance 0.306; OKLCH L 67.0% C 0.134 H 107.0°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9F9A20
RGBrgb(159, 154, 32)
HSLhsl(58, 66%, 37%)
HSVhsv(58, 80%, 62%)
CMYKcmyk(0%, 3.1%, 79.9%, 37.6%)
CIE-LABlab(62.16, -11.83, 59.10)
CIE-LCHlch(62.16, 60.27, 101.32°)
OKLaboklab(66.97% -0.0393 0.1283)
OKLCHoklch(66.97% 0.134 107)
XYZxyz(26.1155, 30.5874, 5.8945)
Luminance0.3059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9A20 #20259F
analogous
#9F5B20 #9F9A20 #649F20
triadic
#9F9A20 #209F9A #9A209F
tetradic
#9F9A20 #209F5B #20259F #9F2064
square
#9F9A20 #209F5B #20259F #9F2064
split-complementary
#9F9A20 #20649F #5B209F
monochromatic
#39370B #6C6916 #9F9A20 #D2CB2A #DED95B

Accessibility & contrast

On white

2.95
#9F9A20 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#9F9A20 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9A20
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9A20#FFFFFF#000000##000000
##9F9A201.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#AA982B
Tritanopia (blue-blind)
#AB8F84
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9f9a20;
/* rgb */ color: rgb(159, 154, 32);
/* oklch */ color: oklch(67.0% 0.134 107.0);
Tailwind
colors: {
  custom: {
    50: '#bfb767',
    500: '#9f9a20',
    950: '#000000',
  },
}
SCSS
$custom: #9f9a20;
$custom-light: #bfb767;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9a20",
  "rgb": {
    "r": 159,
    "g": 154,
    "b": 32
  },
  "hsl": {
    "h": 57.638,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.66972,
    "c": 0.13418,
    "h": 107
  },
  "luminance": 0.30586
}

Semantic roles & 50–950 ramp

primary
#9F9A20
secondary
#595DC2
accent
#45E93E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9A20

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

Preview Lab → · Contrast checker → · Palette generator →

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