#9B8E23#9B8E23

#9B8E23 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.122 H 102.1°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9B8E23
RGBrgb(155, 142, 35)
HSLhsl(54, 63%, 37%)
HSVhsv(54, 77%, 61%)
CMYKcmyk(0%, 8.4%, 77.4%, 39.2%)
CIE-LABlab(58.45, -7.11, 54.63)
CIE-LCHlch(58.45, 55.09, 97.41°)
OKLaboklab(63.94% -0.0256 0.1195)
OKLCHoklch(63.94% 0.122 102.1)
XYZxyz(23.4950, 26.4370, 5.4551)
Luminance0.2644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8E23 #23309B
analogous
#9B5223 #9B8E23 #6C9B23
triadic
#9B8E23 #239B8E #8E239B
tetradic
#9B8E23 #239B52 #23309B #9B236C
square
#9B8E23 #239B52 #23309B #9B236C
split-complementary
#9B8E23 #236C9B #52239B
monochromatic
#37330C #696018 #9B8E23 #CDBC2E #DBCD5E

Accessibility & contrast

On white

3.34
#9B8E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9B8E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8E23
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8E23#FFFFFF#000000##000000
##9B8E231.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C890B
Deuteranopia (green-blind)
#A08F2B
Tritanopia (blue-blind)
#A7837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8e23;
/* rgb */ color: rgb(155, 142, 35);
/* oklch */ color: oklch(63.9% 0.122 102.1);
Tailwind
colors: {
  custom: {
    50: '#bcae67',
    500: '#9b8e23',
    950: '#000000',
  },
}
SCSS
$custom: #9b8e23;
$custom-light: #bcae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8e23",
  "rgb": {
    "r": 155,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 53.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63939,
    "c": 0.12222,
    "h": 102.1
  },
  "luminance": 0.26436
}

Semantic roles & 50–950 ramp

primary
#9B8E23
secondary
#5A65BF
accent
#53E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8E23

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

Preview Lab → · Contrast checker → · Palette generator →

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