#8A9F1F#8A9F1F

#8A9F1F is a light, vivid yellow. Relative luminance 0.303; OKLCH L 66.4% C 0.146 H 119.1°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8A9F1F
RGBrgb(138, 159, 31)
HSLhsl(70, 67%, 37%)
HSVhsv(70, 81%, 62%)
CMYKcmyk(13.2%, 0%, 80.5%, 37.6%)
CIE-LABlab(61.91, -23.67, 58.54)
CIE-LCHlch(61.91, 63.14, 112.02°)
OKLaboklab(66.36% -0.071 0.1278)
OKLCHoklch(66.36% 0.146 119.1)
XYZxyz(23.1272, 30.2986, 5.9259)
Luminance0.3030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F1F #341F9F
analogous
#9F741F #8A9F1F #4A9F1F
triadic
#8A9F1F #1F8A9F #9F1F8A
tetradic
#8A9F1F #1F9F74 #341F9F #9F1F4A
square
#8A9F1F #1F9F74 #341F9F #9F1F4A
split-complementary
#8A9F1F #1F4A9F #741F9F
monochromatic
#31390B #5E6C15 #8A9F1F #B6D229 #C9DF5A

Accessibility & contrast

On white

2.97
#8A9F1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#8A9F1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9F1F
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9F1F#FFFFFF#000000##000000
##8A9F1F1.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#A7962C
Tritanopia (blue-blind)
#939688
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a9f1f;
/* rgb */ color: rgb(138, 159, 31);
/* oklch */ color: oklch(66.4% 0.146 119.1);
Tailwind
colors: {
  custom: {
    50: '#b0bb67',
    500: '#8a9f1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f1f;
$custom-light: #b0bb67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f1f",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 31
  },
  "hsl": {
    "h": 69.844,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66358,
    "c": 0.14617,
    "h": 119.1
  },
  "luminance": 0.30298
}

Semantic roles & 50–950 ramp

primary
#8A9F1F
secondary
#6957C3
accent
#3EEA5A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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