#9B9722#9B9722

#9B9722 is a light, vivid yellow. Relative luminance 0.292; OKLCH L 65.9% C 0.131 H 107.5°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9B9722
RGBrgb(155, 151, 34)
HSLhsl(58, 64%, 37%)
HSVhsv(58, 78%, 61%)
CMYKcmyk(0%, 2.6%, 78.1%, 39.2%)
CIE-LABlab(60.97, -11.96, 57.28)
CIE-LCHlch(60.97, 58.51, 101.80°)
OKLaboklab(65.95% -0.0393 0.125)
OKLCHoklch(65.95% 0.131 107.5)
XYZxyz(24.8739, 29.2181, 5.8425)
Luminance0.2922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9722 #22269B
analogous
#9B5B22 #9B9722 #629B22
triadic
#9B9722 #229B97 #97229B
tetradic
#9B9722 #229B5B #22269B #9B2262
square
#9B9722 #229B5B #22269B #9B2262
split-complementary
#9B9722 #22629B #5B229B
monochromatic
#37350C #696617 #9B9722 #CDC82D #DBD75C

Accessibility & contrast

On white

3.07
#9B9722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#9B9722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9722
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9722#FFFFFF#000000##000000
##9B97221.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49102
Deuteranopia (green-blind)
#A6952C
Tritanopia (blue-blind)
#A78D81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9b9722;
/* rgb */ color: rgb(155, 151, 34);
/* oklch */ color: oklch(65.9% 0.131 107.5);
Tailwind
colors: {
  custom: {
    50: '#bcb568',
    500: '#9b9722',
    950: '#000000',
  },
}
SCSS
$custom: #9b9722;
$custom-light: #bcb568;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9722",
  "rgb": {
    "r": 155,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 58.017,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.65947,
    "c": 0.13099,
    "h": 107.5
  },
  "luminance": 0.29217
}

Semantic roles & 50–950 ramp

primary
#9B9722
secondary
#595CC0
accent
#46E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9722

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

Preview Lab → · Contrast checker → · Palette generator →

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