#8A8818#8A8818

#8A8818 is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.9% C 0.124 H 108.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A8818
RGBrgb(138, 136, 24)
HSLhsl(59, 70%, 32%)
HSVhsv(59, 83%, 54%)
CMYKcmyk(0%, 1.4%, 82.6%, 45.9%)
CIE-LABlab(55.15, -12.04, 54.60)
CIE-LCHlch(55.15, 55.91, 102.44°)
OKLaboklab(60.93% -0.0395 0.118)
OKLCHoklch(60.93% 0.124 108.5)
XYZxyz(19.4510, 23.0782, 4.2939)
Luminance0.2308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8818 #181A8A
analogous
#8A4F18 #8A8818 #538A18
triadic
#8A8818 #188A88 #88188A
tetradic
#8A8818 #188A4F #181A8A #8A1853
square
#8A8818 #188A4F #181A8A #8A1853
split-complementary
#8A8818 #18538A #4F188A
monochromatic
#222106 #56550F #8A8818 #BEBB21 #DEDB3F

Accessibility & contrast

On white

3.74
#8A8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8818
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8818#FFFFFF#000000##000000
##8A88181.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#957F74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8818;
/* rgb */ color: rgb(138, 136, 24);
/* oklch */ color: oklch(60.9% 0.124 108.5);
Tailwind
colors: {
  custom: {
    50: '#b0aa61',
    500: '#8a8818',
    950: '#000000',
  },
}
SCSS
$custom: #8a8818;
$custom-light: #b0aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8818",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 58.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60926,
    "c": 0.12446,
    "h": 108.5
  },
  "luminance": 0.23078
}

Semantic roles & 50–950 ramp

primary
#8A8818
secondary
#4043BD
accent
#3EED3B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8818

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

Preview Lab → · Contrast checker → · Palette generator →

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