#9F9722#9F9722

#9F9722 is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.3% C 0.130 H 105.3°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9F9722
RGBrgb(159, 151, 34)
HSLhsl(56, 65%, 38%)
HSVhsv(56, 79%, 62%)
CMYKcmyk(0%, 5%, 78.6%, 37.6%)
CIE-LABlab(61.33, -10.17, 57.73)
CIE-LCHlch(61.33, 58.62, 99.99°)
OKLaboklab(66.31% -0.0345 0.1258)
OKLCHoklch(66.31% 0.13 105.3)
XYZxyz(25.6545, 29.6206, 5.8791)
Luminance0.2962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9722 #222A9F
analogous
#9F5822 #9F9722 #689F22
triadic
#9F9722 #229F97 #97229F
tetradic
#9F9722 #229F58 #222A9F #9F2268
square
#9F9722 #229F58 #222A9F #9F2268
split-complementary
#9F9722 #22689F #58229F
monochromatic
#3A370C #6D6717 #9F9722 #D1C72D #DDD55F

Accessibility & contrast

On white

3.03
#9F9722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#9F9722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9722
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9722#FFFFFF#000000##000000
##9F97221.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59102
Deuteranopia (green-blind)
#A8962C
Tritanopia (blue-blind)
#AB8C81
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9f9722;
/* rgb */ color: rgb(159, 151, 34);
/* oklch */ color: oklch(66.3% 0.130 105.3);
Tailwind
colors: {
  custom: {
    50: '#bfb568',
    500: '#9f9722',
    950: '#000000',
  },
}
SCSS
$custom: #9f9722;
$custom-light: #bfb568;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9722",
  "rgb": {
    "r": 159,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 56.16,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.66312,
    "c": 0.13039,
    "h": 105.3
  },
  "luminance": 0.2962
}

Semantic roles & 50–950 ramp

primary
#9F9722
secondary
#5B62C1
accent
#4BE840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9722

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

Preview Lab → · Contrast checker → · Palette generator →

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