#8A9818#8A9818

#8A9818 is a light, vivid yellow. Relative luminance 0.279; OKLCH L 64.7% C 0.141 H 116.3°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A9818
RGBrgb(138, 152, 24)
HSLhsl(67, 73%, 35%)
HSVhsv(67, 84%, 60%)
CMYKcmyk(9.2%, 0%, 84.2%, 40.4%)
CIE-LABlab(59.82, -20.41, 58.62)
CIE-LCHlch(59.82, 62.07, 109.19°)
OKLaboklab(64.67% -0.0626 0.1267)
OKLCHoklch(64.67% 0.141 116.3)
XYZxyz(21.8750, 27.9260, 5.1019)
Luminance0.2793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9818 #261898
analogous
#986618 #8A9818 #4A9818
triadic
#8A9818 #188A98 #98188A
tetradic
#8A9818 #189866 #261898 #98184A
square
#8A9818 #189866 #261898 #98184A
split-complementary
#8A9818 #184A98 #661898
monochromatic
#2A2E07 #5A6310 #8A9818 #BACD20 #D1E248

Accessibility & contrast

On white

3.19
#8A9818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#8A9818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9818
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9818#FFFFFF#000000##000000
##8A98181.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A29126
Tritanopia (blue-blind)
#938F81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9818;
/* rgb */ color: rgb(138, 152, 24);
/* oklch */ color: oklch(64.7% 0.141 116.3);
Tailwind
colors: {
  custom: {
    50: '#b0b663',
    500: '#8a9818',
    950: '#000000',
  },
}
SCSS
$custom: #8a9818;
$custom-light: #b0b663;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9818",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 24
  },
  "hsl": {
    "h": 66.563,
    "s": 72.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.64667,
    "c": 0.14133,
    "h": 116.3
  },
  "luminance": 0.27926
}

Semantic roles & 50–950 ramp

primary
#8A9818
secondary
#5648C4
accent
#38EF4C
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9818

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

Preview Lab → · Contrast checker → · Palette generator →

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