#9B8923#9B8923

#9B8923 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.8% C 0.118 H 98.7°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#9B8923
RGBrgb(155, 137, 35)
HSLhsl(51, 63%, 37%)
HSVhsv(51, 77%, 61%)
CMYKcmyk(0%, 11.6%, 77.4%, 39.2%)
CIE-LABlab(57.06, -4.38, 53.34)
CIE-LCHlch(57.06, 53.52, 94.70°)
OKLaboklab(62.83% -0.0179 0.1168)
OKLCHoklch(62.83% 0.118 98.7)
XYZxyz(22.7677, 24.9824, 5.2126)
Luminance0.2498 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8923 #23359B
analogous
#9B4D23 #9B8923 #719B23
triadic
#9B8923 #239B89 #89239B
tetradic
#9B8923 #239B4D #23359B #9B2371
square
#9B8923 #239B4D #23359B #9B2371
split-complementary
#9B8923 #23719B #4D239B
monochromatic
#37310C #695D18 #9B8923 #CDB52E #DBC85E

Accessibility & contrast

On white

3.50
#9B8923 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#9B8923 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8923
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8923#FFFFFF#000000##000000
##9B89231.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850E
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#A87E76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8923;
/* rgb */ color: rgb(155, 137, 35);
/* oklch */ color: oklch(62.8% 0.118 98.7);
Tailwind
colors: {
  custom: {
    50: '#bcab66',
    500: '#9b8923',
    950: '#000000',
  },
}
SCSS
$custom: #9b8923;
$custom-light: #bcab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8923",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 35
  },
  "hsl": {
    "h": 51,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62834,
    "c": 0.11812,
    "h": 98.7
  },
  "luminance": 0.24981
}

Semantic roles & 50–950 ramp

primary
#9B8923
secondary
#5A6ABF
accent
#5AE642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8923

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

Preview Lab → · Contrast checker → · Palette generator →

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