#8A9D1F#8A9D1F

#8A9D1F is a light, vivid yellow. Relative luminance 0.296; OKLCH L 65.9% C 0.144 H 118.3°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8A9D1F
RGBrgb(138, 157, 31)
HSLhsl(69, 67%, 37%)
HSVhsv(69, 80%, 62%)
CMYKcmyk(12.1%, 0%, 80.3%, 38.4%)
CIE-LABlab(61.32, -22.67, 58.01)
CIE-LCHlch(61.32, 62.28, 111.35°)
OKLaboklab(65.88% -0.0683 0.1266)
OKLCHoklch(65.88% 0.144 118.3)
XYZxyz(22.7861, 29.6164, 5.8122)
Luminance0.2962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9D1F #321F9D
analogous
#9D711F #8A9D1F #4B9D1F
triadic
#8A9D1F #1F8A9D #9D1F8A
tetradic
#8A9D1F #1F9D71 #321F9D #9D1F4B
square
#8A9D1F #1F9D71 #321F9D #9D1F4B
split-complementary
#8A9D1F #1F4B9D #711F9D
monochromatic
#30370B #5D6A15 #8A9D1F #B7D029 #CADE58

Accessibility & contrast

On white

3.03
#8A9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#8A9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9D1F
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9D1F#FFFFFF#000000##000000
##8A9D1F1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#A6952C
Tritanopia (blue-blind)
#939486
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a9d1f;
/* rgb */ color: rgb(138, 157, 31);
/* oklch */ color: oklch(65.9% 0.144 118.3);
Tailwind
colors: {
  custom: {
    50: '#b0b967',
    500: '#8a9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9d1f;
$custom-light: #b0b967;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9d1f",
  "rgb": {
    "r": 138,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 69.048,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.65883,
    "c": 0.14388,
    "h": 118.3
  },
  "luminance": 0.29616
}

Semantic roles & 50–950 ramp

primary
#8A9D1F
secondary
#6656C2
accent
#3EEA58
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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