#9A8A23#9A8A23

#9A8A23 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.119 H 100.0°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9A8A23
RGBrgb(154, 138, 35)
HSLhsl(52, 63%, 37%)
HSVhsv(52, 77%, 60%)
CMYKcmyk(0%, 10.4%, 77.3%, 39.6%)
CIE-LABlab(57.24, -5.38, 53.48)
CIE-LCHlch(57.24, 53.75, 95.75°)
OKLaboklab(62.96% -0.0207 0.1171)
OKLCHoklch(62.96% 0.119 100)
XYZxyz(22.7194, 25.1694, 5.2513)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A23 #23339A
analogous
#9A4F23 #9A8A23 #6F9A23
triadic
#9A8A23 #239A8A #8A239A
tetradic
#9A8A23 #239A4F #23339A #9A236F
square
#9A8A23 #239A4F #23339A #9A236F
split-complementary
#9A8A23 #236F9A #4F239A
monochromatic
#36310C #685D18 #9A8A23 #CCB72E #DAC95D

Accessibility & contrast

On white

3.48
#9A8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9A8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8A23
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8A23#FFFFFF#000000##000000
##9A8A231.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860D
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#A67F76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9a8a23;
/* rgb */ color: rgb(154, 138, 35);
/* oklch */ color: oklch(63.0% 0.119 100.0);
Tailwind
colors: {
  custom: {
    50: '#bbab66',
    500: '#9a8a23',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a23;
$custom-light: #bbab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a23",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 51.933,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62956,
    "c": 0.1189,
    "h": 100
  },
  "luminance": 0.25168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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