#9B8A23#9B8A23

#9B8A23 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.119 H 99.4°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9B8A23
RGBrgb(155, 138, 35)
HSLhsl(52, 63%, 37%)
HSVhsv(52, 77%, 61%)
CMYKcmyk(0%, 11%, 77.4%, 39.2%)
CIE-LABlab(57.34, -4.93, 53.60)
CIE-LCHlch(57.34, 53.83, 95.25°)
OKLaboklab(63.05% -0.0194 0.1173)
OKLCHoklch(63.05% 0.119 99.4)
XYZxyz(22.9106, 25.2680, 5.2602)
Luminance0.2527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A23 #23349B
analogous
#9B4E23 #9B8A23 #709B23
triadic
#9B8A23 #239B8A #8A239B
tetradic
#9B8A23 #239B4E #23349B #9B2370
square
#9B8A23 #239B4E #23349B #9B2370
split-complementary
#9B8A23 #23709B #4E239B
monochromatic
#37310C #695E18 #9B8A23 #CDB62E #DBC95E

Accessibility & contrast

On white

3.47
#9B8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9B8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A23
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A23#FFFFFF#000000##000000
##9B8A231.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860D
Deuteranopia (green-blind)
#9D8C2A
Tritanopia (blue-blind)
#A87F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a23;
/* rgb */ color: rgb(155, 138, 35);
/* oklch */ color: oklch(63.1% 0.119 99.4);
Tailwind
colors: {
  custom: {
    50: '#bcab67',
    500: '#9b8a23',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a23;
$custom-light: #bcab67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a23",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 51.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63054,
    "c": 0.11891,
    "h": 99.4
  },
  "luminance": 0.25267
}

Semantic roles & 50–950 ramp

primary
#9B8A23
secondary
#5A69BF
accent
#59E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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