#9B8F23#9B8F23

#9B8F23 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.123 H 102.7°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9B8F23
RGBrgb(155, 143, 35)
HSLhsl(54, 63%, 37%)
HSVhsv(54, 77%, 61%)
CMYKcmyk(0%, 7.7%, 77.4%, 39.2%)
CIE-LABlab(58.73, -7.65, 54.89)
CIE-LCHlch(58.73, 55.42, 97.93°)
OKLaboklab(64.16% -0.0271 0.1201)
OKLCHoklch(64.16% 0.123 102.7)
XYZxyz(23.6445, 26.7359, 5.5049)
Luminance0.2673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8F23 #232F9B
analogous
#9B5323 #9B8F23 #6B9B23
triadic
#9B8F23 #239B8F #8F239B
tetradic
#9B8F23 #239B53 #232F9B #9B236B
square
#9B8F23 #239B53 #232F9B #9B236B
split-complementary
#9B8F23 #236B9B #53239B
monochromatic
#37330C #696118 #9B8F23 #CDBD2E #DBCE5E

Accessibility & contrast

On white

3.31
#9B8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#9B8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8F23
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8F23#FFFFFF#000000##000000
##9B8F231.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A0B
Deuteranopia (green-blind)
#A0902B
Tritanopia (blue-blind)
#A7847B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8f23;
/* rgb */ color: rgb(155, 143, 35);
/* oklch */ color: oklch(64.2% 0.123 102.7);
Tailwind
colors: {
  custom: {
    50: '#bcaf67',
    500: '#9b8f23',
    950: '#000000',
  },
}
SCSS
$custom: #9b8f23;
$custom-light: #bcaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8f23",
  "rgb": {
    "r": 155,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 54,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.64161,
    "c": 0.12308,
    "h": 102.7
  },
  "luminance": 0.26735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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