#9F9B20#9F9B20

#9F9B20 is a light, vivid yellow. Relative luminance 0.309; OKLCH L 67.2% C 0.135 H 107.6°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9F9B20
RGBrgb(159, 155, 32)
HSLhsl(58, 66%, 37%)
HSVhsv(58, 80%, 62%)
CMYKcmyk(0%, 2.5%, 79.9%, 37.6%)
CIE-LABlab(62.44, -12.36, 59.35)
CIE-LCHlch(62.44, 60.62, 101.76°)
OKLaboklab(67.2% -0.0408 0.1288)
OKLCHoklch(67.2% 0.135 107.6)
XYZxyz(26.2812, 30.9188, 5.9498)
Luminance0.3092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9B20 #20249F
analogous
#9F5B20 #9F9B20 #649F20
triadic
#9F9B20 #209F9B #9B209F
tetradic
#9F9B20 #209F5B #20249F #9F2064
square
#9F9B20 #209F5B #20249F #9F2064
split-complementary
#9F9B20 #20649F #5B209F
monochromatic
#39380B #6C6916 #9F9B20 #D2CD2A #DEDA5B

Accessibility & contrast

On white

2.92
#9F9B20 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#9F9B20 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9B20
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9B20#FFFFFF#000000##000000
##9F9B201.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#AB992B
Tritanopia (blue-blind)
#AB9085
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9f9b20;
/* rgb */ color: rgb(159, 155, 32);
/* oklch */ color: oklch(67.2% 0.135 107.6);
Tailwind
colors: {
  custom: {
    50: '#bfb867',
    500: '#9f9b20',
    950: '#000000',
  },
}
SCSS
$custom: #9f9b20;
$custom-light: #bfb867;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9b20",
  "rgb": {
    "r": 159,
    "g": 155,
    "b": 32
  },
  "hsl": {
    "h": 58.11,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.67197,
    "c": 0.13513,
    "h": 107.6
  },
  "luminance": 0.30918
}

Semantic roles & 50–950 ramp

primary
#9F9B20
secondary
#595CC2
accent
#44E93E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9B20

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

Preview Lab → · Contrast checker → · Palette generator →

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