#9A8F2A#9A8F2A

#9A8F2A is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.1% C 0.119 H 103.0°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9A8F2A
RGBrgb(154, 143, 42)
HSLhsl(54, 57%, 38%)
HSVhsv(54, 73%, 60%)
CMYKcmyk(0%, 7.1%, 72.7%, 39.6%)
CIE-LABlab(58.68, -7.78, 52.23)
CIE-LCHlch(58.68, 52.81, 98.47°)
OKLaboklab(64.11% -0.0267 0.1158)
OKLCHoklch(64.11% 0.119 103)
XYZxyz(23.5678, 26.6831, 6.0990)
Luminance0.2668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8F2A #2A359A
analogous
#9A572A #9A8F2A #6D9A2A
triadic
#9A8F2A #2A9A8F #8F2A9A
tetradic
#9A8F2A #2A9A57 #2A359A #9A2A6D
square
#9A8F2A #2A9A57 #2A359A #9A2A6D
split-complementary
#9A8F2A #2A6D9A #572A9A
monochromatic
#3A3610 #6A621D #9A8F2A #C9BB38 #D6CB68

Accessibility & contrast

On white

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

On black

6.34
#9A8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8F2A
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8F2A#FFFFFF#000000##000000
##9A8F2A1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A19
Deuteranopia (green-blind)
#A08F31
Tritanopia (blue-blind)
#A6857B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a8f2a;
/* rgb */ color: rgb(154, 143, 42);
/* oklch */ color: oklch(64.1% 0.119 103.0);
Tailwind
colors: {
  custom: {
    50: '#bbaf6b',
    500: '#9a8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9a8f2a;
$custom-light: #bbaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8f2a",
  "rgb": {
    "r": 154,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 54.107,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64113,
    "c": 0.11887,
    "h": 103
  },
  "luminance": 0.26682
}

Semantic roles & 50–950 ramp

primary
#9A8F2A
secondary
#636CBC
accent
#56E047
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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