#9B8023#9B8023

#9B8023 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.9% C 0.112 H 91.9°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9B8023
RGBrgb(155, 128, 35)
HSLhsl(47, 63%, 37%)
HSVhsv(47, 77%, 61%)
CMYKcmyk(0%, 17.4%, 77.4%, 39.2%)
CIE-LABlab(54.58, 0.60, 51.03)
CIE-LCHlch(54.58, 51.03, 89.32°)
OKLaboklab(60.88% -0.0037 0.1118)
OKLCHoklch(60.88% 0.112 91.9)
XYZxyz(21.5413, 22.5296, 4.8038)
Luminance0.2253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8023 #233E9B
analogous
#9B4423 #9B8023 #7A9B23
triadic
#9B8023 #239B80 #80239B
tetradic
#9B8023 #239B44 #233E9B #9B237A
square
#9B8023 #239B44 #233E9B #9B237A
split-complementary
#9B8023 #237A9B #44239B
monochromatic
#372E0C #695718 #9B8023 #CDA92E #DBBF5E

Accessibility & contrast

On white

3.81
#9B8023 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#9B8023 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8023
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8023#FFFFFF#000000##000000
##9B80231.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E12
Deuteranopia (green-blind)
#958628
Tritanopia (blue-blind)
#A8756E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9b8023;
/* rgb */ color: rgb(155, 128, 35);
/* oklch */ color: oklch(60.9% 0.112 91.9);
Tailwind
colors: {
  custom: {
    50: '#bca465',
    500: '#9b8023',
    950: '#000000',
  },
}
SCSS
$custom: #9b8023;
$custom-light: #bca465;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8023",
  "rgb": {
    "r": 155,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 46.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60878,
    "c": 0.11188,
    "h": 91.9
  },
  "luminance": 0.22528
}

Semantic roles & 50–950 ramp

primary
#9B8023
secondary
#5A71BF
accent
#67E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B8023

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

Preview Lab → · Contrast checker → · Palette generator →

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