#9A8A28#9A8A28

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

Color values

HEX#9A8A28
RGBrgb(154, 138, 40)
HSLhsl(52, 59%, 38%)
HSVhsv(52, 74%, 60%)
CMYKcmyk(0%, 10.4%, 74%, 39.6%)
CIE-LABlab(57.27, -5.16, 51.64)
CIE-LCHlch(57.27, 51.90, 95.70°)
OKLaboklab(62.99% -0.0195 0.1142)
OKLCHoklch(62.99% 0.116 99.7)
XYZxyz(22.7990, 25.2013, 5.6705)
Luminance0.2520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8A28 #28389A
analogous
#9A5128 #9A8A28 #719A28
triadic
#9A8A28 #289A8A #8A289A
tetradic
#9A8A28 #289A51 #28389A #9A2871
square
#9A8A28 #289A51 #28389A #9A2871
split-complementary
#9A8A28 #28719A #51289A
monochromatic
#39330F #695E1B #9A8A28 #CAB535 #D7C765

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8A28#FFFFFF#000000##000000
##9A8A281.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)
#988617
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A68077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9a8a28;
/* rgb */ color: rgb(154, 138, 40);
/* oklch */ color: oklch(63.0% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#bbab69',
    500: '#9a8a28',
    950: '#000000',
  },
}
SCSS
$custom: #9a8a28;
$custom-light: #bbab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8a28",
  "rgb": {
    "r": 154,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 51.579,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.6299,
    "c": 0.11584,
    "h": 99.7
  },
  "luminance": 0.252
}

Semantic roles & 50–950 ramp

primary
#9A8A28
secondary
#616EBD
accent
#5CE246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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