#9A9722#9A9722

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

Color values

HEX#9A9722
RGBrgb(154, 151, 34)
HSLhsl(59, 64%, 37%)
HSVhsv(59, 78%, 60%)
CMYKcmyk(0%, 1.9%, 77.9%, 39.6%)
CIE-LABlab(60.89, -12.41, 57.17)
CIE-LCHlch(60.89, 58.50, 102.25°)
OKLaboklab(65.86% -0.0405 0.1248)
OKLCHoklch(65.86% 0.131 108)
XYZxyz(24.6828, 29.1196, 5.8335)
Luminance0.2912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A9722 #22259A
analogous
#9A5B22 #9A9722 #619A22
triadic
#9A9722 #229A97 #97229A
tetradic
#9A9722 #229A5B #22259A #9A2261
square
#9A9722 #229A5B #22259A #9A2261
split-complementary
#9A9722 #22619A #5B229A
monochromatic
#36350C #686617 #9A9722 #CCC82D #DBD85B

Accessibility & contrast

On white

3.08
#9A9722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#9A9722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A9722
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A9722#FFFFFF#000000##000000
##9A97221.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a9722;
/* rgb */ color: rgb(154, 151, 34);
/* oklch */ color: oklch(65.9% 0.131 108.0);
Tailwind
colors: {
  custom: {
    50: '#bbb568',
    500: '#9a9722',
    950: '#000000',
  },
}
SCSS
$custom: #9a9722;
$custom-light: #bbb568;
$custom-dark: #000000;
JSON
{
  "hex": "#9a9722",
  "rgb": {
    "r": 154,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 58.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.65857,
    "c": 0.13117,
    "h": 108
  },
  "luminance": 0.29119
}

Semantic roles & 50–950 ramp

primary
#9A9722
secondary
#585BBF
accent
#45E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9A9722

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

Preview Lab → · Contrast checker → · Palette generator →

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