#9C9822#9C9822

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

Color values

HEX#9C9822
RGBrgb(156, 152, 34)
HSLhsl(58, 64%, 37%)
HSVhsv(58, 78%, 61%)
CMYKcmyk(0%, 2.6%, 78.2%, 38.8%)
CIE-LABlab(61.34, -12.04, 57.64)
CIE-LCHlch(61.34, 58.89, 101.80°)
OKLaboklab(66.26% -0.0396 0.1257)
OKLCHoklch(66.26% 0.132 107.5)
XYZxyz(25.2283, 29.6408, 5.9054)
Luminance0.2964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C9822 #22269C
analogous
#9C5B22 #9C9822 #639C22
triadic
#9C9822 #229C98 #98229C
tetradic
#9C9822 #229C5B #22269C #9C2263
square
#9C9822 #229C5B #22269C #9C2263
split-complementary
#9C9822 #22639C #5B229C
monochromatic
#38360C #6A6717 #9C9822 #CEC92D #DCD75D

Accessibility & contrast

On white

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

On black

6.93
#9C9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C9822
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C9822#FFFFFF#000000##000000
##9C98221.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59201
Deuteranopia (green-blind)
#A7962C
Tritanopia (blue-blind)
#A88E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9c9822;
/* rgb */ color: rgb(156, 152, 34);
/* oklch */ color: oklch(66.3% 0.132 107.5);
Tailwind
colors: {
  custom: {
    50: '#bdb668',
    500: '#9c9822',
    950: '#000000',
  },
}
SCSS
$custom: #9c9822;
$custom-light: #bdb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9c9822",
  "rgb": {
    "r": 156,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 58.033,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66262,
    "c": 0.13178,
    "h": 107.5
  },
  "luminance": 0.2964
}

Semantic roles & 50–950 ramp

primary
#9C9822
secondary
#5A5DC0
accent
#46E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9C9822

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

Preview Lab → · Contrast checker → · Palette generator →

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