#9A8F2F#9A8F2F

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

Color values

HEX#9A8F2F
RGBrgb(154, 143, 47)
HSLhsl(54, 53%, 39%)
HSVhsv(54, 69%, 60%)
CMYKcmyk(0%, 7.1%, 69.5%, 39.6%)
CIE-LABlab(58.72, -7.51, 50.26)
CIE-LCHlch(58.72, 50.81, 98.49°)
OKLaboklab(64.15% -0.0254 0.1126)
OKLCHoklch(64.15% 0.115 102.7)
XYZxyz(23.6630, 26.7212, 6.6000)
Luminance0.2672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8F2F #2F3A9A
analogous
#9A5A2F #9A8F2F #709A2F
triadic
#9A8F2F #2F9A8F #8F2F9A
tetradic
#9A8F2F #2F9A5A #2F3A9A #9A2F70
square
#9A8F2F #2F9A5A #2F3A9A #9A2F70
split-complementary
#9A8F2F #2F709A #5A2F9A
monochromatic
#3C3812 #6B6321 #9A8F2F #C5B741 #D3C970

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8F2F#FFFFFF#000000##000000
##9A8F2F1.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)
#9C8A21
Deuteranopia (green-blind)
#9F8F35
Tritanopia (blue-blind)
#A6857C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a8f2f;
/* rgb */ color: rgb(154, 143, 47);
/* oklch */ color: oklch(64.2% 0.115 102.7);
Tailwind
colors: {
  custom: {
    50: '#bbaf6d',
    500: '#9a8f2f',
    950: '#000000',
  },
}
SCSS
$custom: #9a8f2f;
$custom-light: #bbaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8f2f",
  "rgb": {
    "r": 154,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 53.832,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64153,
    "c": 0.11539,
    "h": 102.7
  },
  "luminance": 0.2672
}

Semantic roles & 50–950 ramp

primary
#9A8F2F
secondary
#6A72BB
accent
#5ADD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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