#9F9820#9F9820

#9F9820 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.5% C 0.132 H 106.0°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F9820
RGBrgb(159, 152, 32)
HSLhsl(57, 66%, 37%)
HSVhsv(57, 80%, 62%)
CMYKcmyk(0%, 4.4%, 79.9%, 37.6%)
CIE-LABlab(61.60, -10.78, 58.60)
CIE-LCHlch(61.60, 59.58, 100.42°)
OKLaboklab(66.52% -0.0364 0.1272)
OKLCHoklch(66.52% 0.132 106)
XYZxyz(25.7881, 29.9327, 5.7854)
Luminance0.2993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9820 #20279F
analogous
#9F5920 #9F9820 #669F20
triadic
#9F9820 #209F98 #98209F
tetradic
#9F9820 #209F59 #20279F #9F2066
square
#9F9820 #209F59 #20279F #9F2066
split-complementary
#9F9820 #20669F #59209F
monochromatic
#39370B #6C6716 #9F9820 #D2C92A #DED75B

Accessibility & contrast

On white

3.01
#9F9820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#9F9820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9820
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9820#FFFFFF#000000##000000
##9F98201.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A9972A
Tritanopia (blue-blind)
#AB8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f9820;
/* rgb */ color: rgb(159, 152, 32);
/* oklch */ color: oklch(66.5% 0.132 106.0);
Tailwind
colors: {
  custom: {
    50: '#bfb667',
    500: '#9f9820',
    950: '#000000',
  },
}
SCSS
$custom: #9f9820;
$custom-light: #bfb667;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9820",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 56.693,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.66524,
    "c": 0.13231,
    "h": 106
  },
  "luminance": 0.29932
}

Semantic roles & 50–950 ramp

primary
#9F9820
secondary
#595EC2
accent
#48E93E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9820

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

Preview Lab → · Contrast checker → · Palette generator →

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