#8A9C1F#8A9C1F

#8A9C1F is a light, vivid yellow. Relative luminance 0.293; OKLCH L 65.6% C 0.143 H 118.0°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8A9C1F
RGBrgb(138, 156, 31)
HSLhsl(69, 67%, 37%)
HSVhsv(69, 80%, 61%)
CMYKcmyk(11.5%, 0%, 80.1%, 38.8%)
CIE-LABlab(61.03, -22.17, 57.74)
CIE-LCHlch(61.03, 61.86, 111.01°)
OKLaboklab(65.65% -0.0669 0.1261)
OKLCHoklch(65.65% 0.143 118)
XYZxyz(22.6176, 29.2794, 5.7560)
Luminance0.2928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9C1F #311F9C
analogous
#9C701F #8A9C1F #4C9C1F
triadic
#8A9C1F #1F8A9C #9C1F8A
tetradic
#8A9C1F #1F9C70 #311F9C #9C1F4C
square
#8A9C1F #1F9C70 #311F9C #9C1F4C
split-complementary
#8A9C1F #1F4C9C #701F9C
monochromatic
#30360B #5D6915 #8A9C1F #B7CF29 #CADE58

Accessibility & contrast

On white

3.06
#8A9C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#8A9C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9C1F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9C1F#FFFFFF#000000##000000
##8A9C1F1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#A5942B
Tritanopia (blue-blind)
#939385
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a9c1f;
/* rgb */ color: rgb(138, 156, 31);
/* oklch */ color: oklch(65.6% 0.143 118.0);
Tailwind
colors: {
  custom: {
    50: '#b0b967',
    500: '#8a9c1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9c1f;
$custom-light: #b0b967;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9c1f",
  "rgb": {
    "r": 138,
    "g": 156,
    "b": 31
  },
  "hsl": {
    "h": 68.64,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.65646,
    "c": 0.14273,
    "h": 118
  },
  "luminance": 0.29279
}

Semantic roles & 50–950 ramp

primary
#8A9C1F
secondary
#6555C1
accent
#3EEA57
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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