#9A8F2B#9A8F2B

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

Color values

HEX#9A8F2B
RGBrgb(154, 143, 43)
HSLhsl(54, 56%, 39%)
HSVhsv(54, 72%, 60%)
CMYKcmyk(0%, 7.1%, 72.1%, 39.6%)
CIE-LABlab(58.69, -7.72, 51.85)
CIE-LCHlch(58.69, 52.42, 98.47°)
OKLaboklab(64.12% -0.0264 0.1152)
OKLCHoklch(64.12% 0.118 102.9)
XYZxyz(23.5859, 26.6903, 6.1944)
Luminance0.2669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8F2B #2B369A
analogous
#9A572B #9A8F2B #6D9A2B
triadic
#9A8F2B #2B9A8F #8F2B9A
tetradic
#9A8F2B #2B9A57 #2B369A #9A2B6D
square
#9A8F2B #2B9A57 #2B369A #9A2B6D
split-complementary
#9A8F2B #2B6D9A #572B9A
monochromatic
#3A3610 #6A631E #9A8F2B #C8BA3A #D5CB6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8F2B#FFFFFF#000000##000000
##9A8F2B1.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)
#9C8A1B
Deuteranopia (green-blind)
#A08F32
Tritanopia (blue-blind)
#A6857B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a8f2b;
/* rgb */ color: rgb(154, 143, 43);
/* oklch */ color: oklch(64.1% 0.118 102.9);
Tailwind
colors: {
  custom: {
    50: '#bbaf6b',
    500: '#9a8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #9a8f2b;
$custom-light: #bbaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8f2b",
  "rgb": {
    "r": 154,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 54.054,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64121,
    "c": 0.1182,
    "h": 102.9
  },
  "luminance": 0.26689
}

Semantic roles & 50–950 ramp

primary
#9A8F2B
secondary
#656DBC
accent
#57E048
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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