#9A8B23#9A8B23

#9A8B23 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.120 H 100.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9A8B23
RGBrgb(154, 139, 35)
HSLhsl(52, 63%, 37%)
HSVhsv(52, 77%, 60%)
CMYKcmyk(0%, 9.7%, 77.3%, 39.6%)
CIE-LABlab(57.52, -5.93, 53.74)
CIE-LCHlch(57.52, 54.06, 96.30°)
OKLaboklab(63.18% -0.0222 0.1176)
OKLCHoklch(63.18% 0.12 100.7)
XYZxyz(22.8635, 25.4577, 5.2993)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8B23 #23329A
analogous
#9A5023 #9A8B23 #6E9A23
triadic
#9A8B23 #239A8B #8B239A
tetradic
#9A8B23 #239A50 #23329A #9A236E
square
#9A8B23 #239A50 #23329A #9A236E
split-complementary
#9A8B23 #236E9A #50239A
monochromatic
#36310C #685E18 #9A8B23 #CCB82E #DACA5D

Accessibility & contrast

On white

3.45
#9A8B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9A8B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8B23
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8B23#FFFFFF#000000##000000
##9A8B231.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a8b23;
/* rgb */ color: rgb(154, 139, 35);
/* oklch */ color: oklch(63.2% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#bbac67',
    500: '#9a8b23',
    950: '#000000',
  },
}
SCSS
$custom: #9a8b23;
$custom-light: #bbac67;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8b23",
  "rgb": {
    "r": 154,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 52.437,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63177,
    "c": 0.11972,
    "h": 100.7
  },
  "luminance": 0.25457
}

Semantic roles & 50–950 ramp

primary
#9A8B23
secondary
#5A67BF
accent
#56E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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