#9B9823#9B9823

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

Color values

HEX#9B9823
RGBrgb(155, 152, 35)
HSLhsl(59, 63%, 37%)
HSVhsv(59, 77%, 61%)
CMYKcmyk(0%, 1.9%, 77.4%, 39.2%)
CIE-LABlab(61.26, -12.45, 57.21)
CIE-LCHlch(61.26, 58.55, 102.28°)
OKLaboklab(66.18% -0.0406 0.125)
OKLCHoklch(66.18% 0.131 108)
XYZxyz(25.0502, 29.5472, 5.9734)
Luminance0.2955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9823 #23269B
analogous
#9B5C23 #9B9823 #629B23
triadic
#9B9823 #239B98 #98239B
tetradic
#9B9823 #239B5C #23269B #9B2362
square
#9B9823 #239B5C #23269B #9B2362
split-complementary
#9B9823 #23629B #5C239B
monochromatic
#37360C #696718 #9B9823 #CDC92E #DBD75E

Accessibility & contrast

On white

3.04
#9B9823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#9B9823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9823
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9823#FFFFFF#000000##000000
##9B98231.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59204
Deuteranopia (green-blind)
#A7962D
Tritanopia (blue-blind)
#A78E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9b9823;
/* rgb */ color: rgb(155, 152, 35);
/* oklch */ color: oklch(66.2% 0.131 108.0);
Tailwind
colors: {
  custom: {
    50: '#bcb668',
    500: '#9b9823',
    950: '#000000',
  },
}
SCSS
$custom: #9b9823;
$custom-light: #bcb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9823",
  "rgb": {
    "r": 155,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 58.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66178,
    "c": 0.13144,
    "h": 108
  },
  "luminance": 0.29546
}

Semantic roles & 50–950 ramp

primary
#9B9823
secondary
#5A5DBF
accent
#46E642
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9823

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

Preview Lab → · Contrast checker → · Palette generator →

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