#8A9017#8A9017

#8A9017 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 62.8% C 0.133 H 112.7°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A9017
RGBrgb(138, 144, 23)
HSLhsl(63, 72%, 33%)
HSVhsv(63, 84%, 56%)
CMYKcmyk(4.2%, 0%, 84%, 43.5%)
CIE-LABlab(57.47, -16.31, 56.87)
CIE-LCHlch(57.47, 59.17, 106.01°)
OKLaboklab(62.78% -0.0514 0.1228)
OKLCHoklch(62.78% 0.133 112.7)
XYZxyz(20.6099, 25.4122, 4.6298)
Luminance0.2541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9017 #1D1790
analogous
#905917 #8A9017 #4E9017
triadic
#8A9017 #178A90 #90178A
tetradic
#8A9017 #179059 #1D1790 #90174E
square
#8A9017 #179059 #1D1790 #90174E
split-complementary
#8A9017 #174E90 #591790
monochromatic
#252606 #575B0F #8A9017 #BDC51F #D9E141

Accessibility & contrast

On white

3.45
#8A9017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#8A9017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9017
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9017#FFFFFF#000000##000000
##8A90171.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#9C8B24
Tritanopia (blue-blind)
#94877B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a9017;
/* rgb */ color: rgb(138, 144, 23);
/* oklch */ color: oklch(62.8% 0.133 112.7);
Tailwind
colors: {
  custom: {
    50: '#b0b062',
    500: '#8a9017',
    950: '#000000',
  },
}
SCSS
$custom: #8a9017;
$custom-light: #b0b062;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9017",
  "rgb": {
    "r": 138,
    "g": 144,
    "b": 23
  },
  "hsl": {
    "h": 62.975,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.62782,
    "c": 0.13308,
    "h": 112.7
  },
  "luminance": 0.25412
}

Semantic roles & 50–950 ramp

primary
#8A9017
secondary
#4842C1
accent
#39EF42
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A9017

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

Preview Lab → · Contrast checker → · Palette generator →

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