#9A8F1F#9A8F1F

#9A8F1F is a light, vivid yellow. Relative luminance 0.266; OKLCH L 64.0% C 0.125 H 103.5°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9A8F1F
RGBrgb(154, 143, 31)
HSLhsl(55, 66%, 36%)
HSVhsv(55, 80%, 60%)
CMYKcmyk(0%, 7.1%, 79.9%, 39.6%)
CIE-LABlab(58.62, -8.26, 56.08)
CIE-LCHlch(58.62, 56.69, 98.38°)
OKLaboklab(64.04% -0.0291 0.1219)
OKLCHoklch(64.04% 0.125 103.5)
XYZxyz(23.3973, 26.6149, 5.2008)
Luminance0.2661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8F1F #1F2A9A
analogous
#9A521F #9A8F1F #689A1F
triadic
#9A8F1F #1F9A8F #8F1F9A
tetradic
#9A8F1F #1F9A52 #1F2A9A #9A1F68
square
#9A8F1F #1F9A52 #1F2A9A #9A1F68
split-complementary
#9A8F1F #1F689A #521F9A
monochromatic
#34300A #676015 #9A8F1F #CDBE29 #DDD156

Accessibility & contrast

On white

3.32
#9A8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9A8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8F1F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8F1F#FFFFFF#000000##000000
##9A8F1F1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#A08F28
Tritanopia (blue-blind)
#A6847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a8f1f;
/* rgb */ color: rgb(154, 143, 31);
/* oklch */ color: oklch(64.0% 0.125 103.5);
Tailwind
colors: {
  custom: {
    50: '#bcaf65',
    500: '#9a8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #9a8f1f;
$custom-light: #bcaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8f1f",
  "rgb": {
    "r": 154,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 54.634,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64042,
    "c": 0.1253,
    "h": 103.5
  },
  "luminance": 0.26614
}

Semantic roles & 50–950 ramp

primary
#9A8F1F
secondary
#545EC1
accent
#4EE93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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