#9B9923#9B9923

#9B9923 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.4% C 0.132 H 108.5°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9B9923
RGBrgb(155, 153, 35)
HSLhsl(59, 63%, 37%)
HSVhsv(59, 77%, 61%)
CMYKcmyk(0%, 1.3%, 77.4%, 39.2%)
CIE-LABlab(61.54, -12.98, 57.47)
CIE-LCHlch(61.54, 58.92, 102.72°)
OKLaboklab(66.4% -0.042 0.1256)
OKLCHoklch(66.4% 0.132 108.5)
XYZxyz(25.2132, 29.8732, 6.0278)
Luminance0.2987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9923 #23259B
analogous
#9B5D23 #9B9923 #619B23
triadic
#9B9923 #239B99 #99239B
tetradic
#9B9923 #239B5D #23259B #9B2361
square
#9B9923 #239B5D #23259B #9B2361
split-complementary
#9B9923 #23619B #5D239B
monochromatic
#37360C #696818 #9B9923 #CDCA2E #DBD95E

Accessibility & contrast

On white

3.01
#9B9923 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#9B9923 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9923
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9923#FFFFFF#000000##000000
##9B99231.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69304
Deuteranopia (green-blind)
#A8962D
Tritanopia (blue-blind)
#A78F83
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9b9923;
/* rgb */ color: rgb(155, 153, 35);
/* oklch */ color: oklch(66.4% 0.132 108.5);
Tailwind
colors: {
  custom: {
    50: '#bcb668',
    500: '#9b9923',
    950: '#000000',
  },
}
SCSS
$custom: #9b9923;
$custom-light: #bcb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9923",
  "rgb": {
    "r": 155,
    "g": 153,
    "b": 35
  },
  "hsl": {
    "h": 59,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66404,
    "c": 0.13242,
    "h": 108.5
  },
  "luminance": 0.29872
}

Semantic roles & 50–950 ramp

primary
#9B9923
secondary
#5A5CBF
accent
#44E642
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9923

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

Preview Lab → · Contrast checker → · Palette generator →

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