#9B8D23#9B8D23

#9B8D23 is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.7% C 0.121 H 101.4°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9B8D23
RGBrgb(155, 141, 35)
HSLhsl(53, 63%, 37%)
HSVhsv(53, 77%, 61%)
CMYKcmyk(0%, 9%, 77.4%, 39.2%)
CIE-LABlab(58.17, -6.56, 54.37)
CIE-LCHlch(58.17, 54.77, 96.88°)
OKLaboklab(63.72% -0.0241 0.119)
OKLCHoklch(63.72% 0.121 101.4)
XYZxyz(23.3469, 26.1407, 5.4057)
Luminance0.2614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8D23 #23319B
analogous
#9B5123 #9B8D23 #6D9B23
triadic
#9B8D23 #239B8D #8D239B
tetradic
#9B8D23 #239B51 #23319B #9B236D
square
#9B8D23 #239B51 #23319B #9B236D
split-complementary
#9B8D23 #236D9B #51239B
monochromatic
#37320C #696018 #9B8D23 #CDBA2E #DBCC5E

Accessibility & contrast

On white

3.37
#9B8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#9B8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8D23
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8D23#FFFFFF#000000##000000
##9B8D231.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B890C
Deuteranopia (green-blind)
#9F8E2B
Tritanopia (blue-blind)
#A78279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9b8d23;
/* rgb */ color: rgb(155, 141, 35);
/* oklch */ color: oklch(63.7% 0.121 101.4);
Tailwind
colors: {
  custom: {
    50: '#bcae67',
    500: '#9b8d23',
    950: '#000000',
  },
}
SCSS
$custom: #9b8d23;
$custom-light: #bcae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8d23",
  "rgb": {
    "r": 155,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 53,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63717,
    "c": 0.12137,
    "h": 101.4
  },
  "luminance": 0.2614
}

Semantic roles & 50–950 ramp

primary
#9B8D23
secondary
#5A66BF
accent
#55E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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