#9A8E1F#9A8E1F

#9A8E1F is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.124 H 102.8°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9A8E1F
RGBrgb(154, 142, 31)
HSLhsl(54, 66%, 36%)
HSVhsv(54, 80%, 60%)
CMYKcmyk(0%, 7.8%, 79.9%, 39.6%)
CIE-LABlab(58.34, -7.72, 55.83)
CIE-LCHlch(58.34, 56.36, 97.87°)
OKLaboklab(63.82% -0.0276 0.1213)
OKLCHoklch(63.82% 0.124 102.8)
XYZxyz(23.2478, 26.3160, 5.1510)
Luminance0.2631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8E1F #1F2B9A
analogous
#9A511F #9A8E1F #699A1F
triadic
#9A8E1F #1F9A8E #8E1F9A
tetradic
#9A8E1F #1F9A51 #1F2B9A #9A1F69
square
#9A8E1F #1F9A51 #1F2B9A #9A1F69
split-complementary
#9A8E1F #1F699A #511F9A
monochromatic
#34300A #675F15 #9A8E1F #CDBD29 #DDD056

Accessibility & contrast

On white

3.35
#9A8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9A8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8E1F
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8E1F#FFFFFF#000000##000000
##9A8E1F1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#9F8F28
Tritanopia (blue-blind)
#A68379
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9a8e1f;
/* rgb */ color: rgb(154, 142, 31);
/* oklch */ color: oklch(63.8% 0.124 102.8);
Tailwind
colors: {
  custom: {
    50: '#bcae65',
    500: '#9a8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9a8e1f;
$custom-light: #bcae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8e1f",
  "rgb": {
    "r": 154,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 54.146,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63819,
    "c": 0.12443,
    "h": 102.8
  },
  "luminance": 0.26315
}

Semantic roles & 50–950 ramp

primary
#9A8E1F
secondary
#545FC1
accent
#4FE93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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