#8A9E1F#8A9E1F

#8A9E1F is a light, vivid yellow. Relative luminance 0.300; OKLCH L 66.1% C 0.145 H 118.7°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8A9E1F
RGBrgb(138, 158, 31)
HSLhsl(69, 67%, 37%)
HSVhsv(69, 80%, 62%)
CMYKcmyk(12.7%, 0%, 80.4%, 38%)
CIE-LABlab(61.62, -23.17, 58.27)
CIE-LCHlch(61.62, 62.71, 111.69°)
OKLaboklab(66.12% -0.0697 0.1272)
OKLCHoklch(66.12% 0.145 118.7)
XYZxyz(22.9559, 29.9561, 5.8688)
Luminance0.2996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9E1F #331F9E
analogous
#9E731F #8A9E1F #4A9E1F
triadic
#8A9E1F #1F8A9E #9E1F8A
tetradic
#8A9E1F #1F9E73 #331F9E #9E1F4A
square
#8A9E1F #1F9E73 #331F9E #9E1F4A
split-complementary
#8A9E1F #1F4A9E #731F9E
monochromatic
#31380B #5D6B15 #8A9E1F #B7D129 #C9DE59

Accessibility & contrast

On white

3.00
#8A9E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#8A9E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9E1F
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9E1F#FFFFFF#000000##000000
##8A9E1F1.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#A7952C
Tritanopia (blue-blind)
#939587
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8a9e1f;
/* rgb */ color: rgb(138, 158, 31);
/* oklch */ color: oklch(66.1% 0.145 118.7);
Tailwind
colors: {
  custom: {
    50: '#b0ba67',
    500: '#8a9e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9e1f;
$custom-light: #b0ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9e1f",
  "rgb": {
    "r": 138,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 69.449,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6612,
    "c": 0.14503,
    "h": 118.7
  },
  "luminance": 0.29956
}

Semantic roles & 50–950 ramp

primary
#8A9E1F
secondary
#6756C2
accent
#3EEA59
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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