#9F9921#9F9921

#9F9921 is a light, vivid yellow. Relative luminance 0.303; OKLCH L 66.8% C 0.133 H 106.5°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#9F9921
RGBrgb(159, 153, 33)
HSLhsl(57, 66%, 38%)
HSVhsv(57, 79%, 62%)
CMYKcmyk(0%, 3.8%, 79.2%, 37.6%)
CIE-LABlab(61.88, -11.27, 58.54)
CIE-LCHlch(61.88, 59.62, 100.89°)
OKLaboklab(66.75% -0.0377 0.1273)
OKLCHoklch(66.75% 0.133 106.5)
XYZxyz(25.9649, 30.2642, 5.9124)
Luminance0.3026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9921 #21279F
analogous
#9F5A21 #9F9921 #669F21
triadic
#9F9921 #219F99 #99219F
tetradic
#9F9921 #219F5A #21279F #9F2166
square
#9F9921 #219F5A #21279F #9F2166
split-complementary
#9F9921 #21669F #5A219F
monochromatic
#3A370C #6C6816 #9F9921 #D2CA2C #DDD75D

Accessibility & contrast

On white

2.98
#9F9921 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#9F9921 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9921
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9921#FFFFFF#000000##000000
##9F99211.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#A9982B
Tritanopia (blue-blind)
#AB8E83
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f9921;
/* rgb */ color: rgb(159, 153, 33);
/* oklch */ color: oklch(66.8% 0.133 106.5);
Tailwind
colors: {
  custom: {
    50: '#bfb668',
    500: '#9f9921',
    950: '#000000',
  },
}
SCSS
$custom: #9f9921;
$custom-light: #bfb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9921",
  "rgb": {
    "r": 159,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 57.143,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.66753,
    "c": 0.13275,
    "h": 106.5
  },
  "luminance": 0.30263
}

Semantic roles & 50–950 ramp

primary
#9F9921
secondary
#5A5FC2
accent
#47E93F
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9921

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

Preview Lab → · Contrast checker → · Palette generator →

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