#8A9F17#8A9F17

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

Color values

HEX#8A9F17
RGBrgb(138, 159, 23)
HSLhsl(69, 75%, 36%)
HSVhsv(69, 86%, 62%)
CMYKcmyk(13.2%, 0%, 85.5%, 37.6%)
CIE-LABlab(61.88, -23.95, 60.62)
CIE-LCHlch(61.88, 65.18, 111.56°)
OKLaboklab(66.32% -0.0723 0.1309)
OKLCHoklch(66.32% 0.15 118.9)
XYZxyz(23.0346, 30.2616, 5.4380)
Luminance0.3026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9F17 #2C179F
analogous
#9F7017 #8A9F17 #469F17
triadic
#8A9F17 #178A9F #9F178A
tetradic
#8A9F17 #179F70 #2C179F #9F1746
square
#8A9F17 #179F70 #2C179F #9F1746
split-complementary
#8A9F17 #17469F #70179F
monochromatic
#2D3408 #5C6A0F #8A9F17 #B8D41F #CDE54B

Accessibility & contrast

On white

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

On black

7.05
#8A9F17 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A9F17
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9F17#FFFFFF#000000##000000
##8A9F171.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9500
Deuteranopia (green-blind)
#A89627
Tritanopia (blue-blind)
#939687
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8a9f17;
/* rgb */ color: rgb(138, 159, 23);
/* oklch */ color: oklch(66.3% 0.150 118.9);
Tailwind
colors: {
  custom: {
    50: '#b0bb64',
    500: '#8a9f17',
    950: '#000000',
  },
}
SCSS
$custom: #8a9f17;
$custom-light: #b0bb64;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9f17",
  "rgb": {
    "r": 138,
    "g": 159,
    "b": 23
  },
  "hsl": {
    "h": 69.265,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.66322,
    "c": 0.14953,
    "h": 118.9
  },
  "luminance": 0.30261
}

Semantic roles & 50–950 ramp

primary
#8A9F17
secondary
#5E4BC7
accent
#36F153
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9F17

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

Preview Lab → · Contrast checker → · Palette generator →

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