#9B8B23#9B8B23

#9B8B23 is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.120 H 100.1°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9B8B23
RGBrgb(155, 139, 35)
HSLhsl(52, 63%, 37%)
HSVhsv(52, 77%, 61%)
CMYKcmyk(0%, 10.3%, 77.4%, 39.2%)
CIE-LABlab(57.61, -5.47, 53.86)
CIE-LCHlch(57.61, 54.13, 95.80°)
OKLaboklab(63.28% -0.021 0.1179)
OKLCHoklch(63.28% 0.12 100.1)
XYZxyz(23.0547, 25.5563, 5.3083)
Luminance0.2555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B23 #23339B
analogous
#9B4F23 #9B8B23 #6F9B23
triadic
#9B8B23 #239B8B #8B239B
tetradic
#9B8B23 #239B4F #23339B #9B236F
square
#9B8B23 #239B4F #23339B #9B236F
split-complementary
#9B8B23 #236F9B #4F239B
monochromatic
#37310C #695E18 #9B8B23 #CDB82E #DBCA5E

Accessibility & contrast

On white

3.44
#9B8B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9B8B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8B23
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8B23#FFFFFF#000000##000000
##9B8B231.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870D
Deuteranopia (green-blind)
#9D8D2A
Tritanopia (blue-blind)
#A78077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8b23;
/* rgb */ color: rgb(155, 139, 35);
/* oklch */ color: oklch(63.3% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#bcac67',
    500: '#9b8b23',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b23;
$custom-light: #bcac67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b23",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 52,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63275,
    "c": 0.11971,
    "h": 100.1
  },
  "luminance": 0.25555
}

Semantic roles & 50–950 ramp

primary
#9B8B23
secondary
#5A68BF
accent
#58E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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