#8A9B1F#8A9B1F

#8A9B1F is a light, vivid yellow. Relative luminance 0.289; OKLCH L 65.4% C 0.142 H 117.6°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A9B1F
RGBrgb(138, 155, 31)
HSLhsl(68, 67%, 36%)
HSVhsv(68, 80%, 61%)
CMYKcmyk(11%, 0%, 80%, 39.2%)
CIE-LABlab(60.73, -21.67, 57.48)
CIE-LCHlch(60.73, 61.43, 110.66°)
OKLaboklab(65.41% -0.0655 0.1255)
OKLCHoklch(65.41% 0.142 117.6)
XYZxyz(22.4505, 28.9451, 5.7003)
Luminance0.2894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9B1F #301F9B
analogous
#9B6E1F #8A9B1F #4C9B1F
triadic
#8A9B1F #1F8A9B #9B1F8A
tetradic
#8A9B1F #1F9B6E #301F9B #9B1F4C
square
#8A9B1F #1F9B6E #301F9B #9B1F4C
split-complementary
#8A9B1F #1F4C9B #6E1F9B
monochromatic
#2F350B #5D6815 #8A9B1F #B7CE29 #CBDD57

Accessibility & contrast

On white

3.09
#8A9B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#8A9B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9B1F
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9B1F#FFFFFF#000000##000000
##8A9B1F1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A4932B
Tritanopia (blue-blind)
#939284
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a9b1f;
/* rgb */ color: rgb(138, 155, 31);
/* oklch */ color: oklch(65.4% 0.142 117.6);
Tailwind
colors: {
  custom: {
    50: '#b0b867',
    500: '#8a9b1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9b1f;
$custom-light: #b0b867;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9b1f",
  "rgb": {
    "r": 138,
    "g": 155,
    "b": 31
  },
  "hsl": {
    "h": 68.226,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.6541,
    "c": 0.14158,
    "h": 117.6
  },
  "luminance": 0.28945
}

Semantic roles & 50–950 ramp

primary
#8A9B1F
secondary
#6455C1
accent
#3EEA56
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#8A9B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva