#9A8F2E#9A8F2E

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

Color values

HEX#9A8F2E
RGBrgb(154, 143, 46)
HSLhsl(54, 54%, 39%)
HSVhsv(54, 70%, 60%)
CMYKcmyk(0%, 7.1%, 70.1%, 39.6%)
CIE-LABlab(58.71, -7.56, 50.66)
CIE-LCHlch(58.71, 51.22, 98.49°)
OKLaboklab(64.15% -0.0257 0.1132)
OKLCHoklch(64.15% 0.116 102.8)
XYZxyz(23.6430, 26.7132, 6.4950)
Luminance0.2671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8F2E #2E399A
analogous
#9A592E #9A8F2E #6F9A2E
triadic
#9A8F2E #2E9A8F #8F2E9A
tetradic
#9A8F2E #2E9A59 #2E399A #9A2E6F
square
#9A8F2E #2E9A59 #2E399A #9A2E6F
split-complementary
#9A8F2E #2E6F9A #592E9A
monochromatic
#3C3712 #6B6320 #9A8F2E #C6B83F #D4CA6F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A8F2E#FFFFFF#000000##000000
##9A8F2E1.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)
#9C8A20
Deuteranopia (green-blind)
#9F8F34
Tritanopia (blue-blind)
#A6857B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a8f2e;
/* rgb */ color: rgb(154, 143, 46);
/* oklch */ color: oklch(64.1% 0.116 102.8);
Tailwind
colors: {
  custom: {
    50: '#bbaf6d',
    500: '#9a8f2e',
    950: '#000000',
  },
}
SCSS
$custom: #9a8f2e;
$custom-light: #bbaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8f2e",
  "rgb": {
    "r": 154,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 53.889,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64145,
    "c": 0.11611,
    "h": 102.8
  },
  "luminance": 0.26712
}

Semantic roles & 50–950 ramp

primary
#9A8F2E
secondary
#6971BB
accent
#59DD4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9A8F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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