#9A8A27#9A8A27

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

Color values

HEX#9A8A27
RGBrgb(154, 138, 39)
HSLhsl(52, 60%, 38%)
HSVhsv(52, 75%, 60%)
CMYKcmyk(0%, 10.4%, 74.7%, 39.6%)
CIE-LABlab(57.26, -5.20, 52.02)
CIE-LCHlch(57.26, 52.28, 95.71°)
OKLaboklab(62.98% -0.0197 0.1148)
OKLCHoklch(62.98% 0.116 99.8)
XYZxyz(22.7822, 25.1946, 5.5821)
Luminance0.2519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A27 #27379A
analogous
#9A5027 #9A8A27 #709A27
triadic
#9A8A27 #279A8A #8A279A
tetradic
#9A8A27 #279A50 #27379A #9A2770
square
#9A8A27 #279A50 #27379A #9A2770
split-complementary
#9A8A27 #27709A #50279A
monochromatic
#38320E #695E1B #9A8A27 #CBB633 #D8C864

Accessibility & contrast

On white

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

On black

6.04
#9A8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8A27
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8A27#FFFFFF#000000##000000
##9A8A271.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988616
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#A68077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9a8a27;
/* rgb */ color: rgb(154, 138, 39);
/* oklch */ color: oklch(63.0% 0.116 99.8);
Tailwind
colors: {
  custom: {
    50: '#bbab68',
    500: '#9a8a27',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a27;
$custom-light: #bbab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a27",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 51.652,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62983,
    "c": 0.11649,
    "h": 99.8
  },
  "luminance": 0.25193
}

Semantic roles & 50–950 ramp

primary
#9A8A27
secondary
#5F6DBD
accent
#5BE345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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