#8A9F1B#8A9F1B

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

Color values

HEX#8A9F1B
RGBrgb(138, 159, 27)
HSLhsl(70, 71%, 36%)
HSVhsv(70, 83%, 62%)
CMYKcmyk(13.2%, 0%, 83%, 37.6%)
CIE-LABlab(61.89, -23.82, 59.63)
CIE-LCHlch(61.89, 64.22, 111.78°)
OKLaboklab(66.34% -0.0717 0.1294)
OKLCHoklch(66.34% 0.148 119)
XYZxyz(23.0777, 30.2788, 5.6654)
Luminance0.3028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F1B #301B9F
analogous
#9F721B #8A9F1B #489F1B
triadic
#8A9F1B #1B8A9F #9F1B8A
tetradic
#8A9F1B #1B9F72 #301B9F #9F1B48
square
#8A9F1B #1B9F72 #301B9F #9F1B48
split-complementary
#8A9F1B #1B489F #721B9F
monochromatic
#2F3609 #5D6B12 #8A9F1B #B7D324 #CBE253

Accessibility & contrast

On white

2.98
#8A9F1B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9F1B#FFFFFF#000000##000000
##8A9F1B1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a9f1b;
/* rgb */ color: rgb(138, 159, 27);
/* oklch */ color: oklch(66.3% 0.148 119.0);
Tailwind
colors: {
  custom: {
    50: '#b0bb66',
    500: '#8a9f1b',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f1b;
$custom-light: #b0bb66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f1b",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 27
  },
  "hsl": {
    "h": 69.545,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.66339,
    "c": 0.14796,
    "h": 119
  },
  "luminance": 0.30279
}

Semantic roles & 50–950 ramp

primary
#8A9F1B
secondary
#6451C5
accent
#3AEE57
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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