#8A8918#8A8918

#8A8918 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.2% C 0.125 H 109.1°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A8918
RGBrgb(138, 137, 24)
HSLhsl(59, 70%, 32%)
HSVhsv(59, 83%, 54%)
CMYKcmyk(0%, 0.7%, 82.6%, 45.9%)
CIE-LABlab(55.44, -12.58, 54.85)
CIE-LCHlch(55.44, 56.28, 102.92°)
OKLaboklab(61.16% -0.041 0.1186)
OKLCHoklch(61.16% 0.125 109.1)
XYZxyz(19.5925, 23.3612, 4.3411)
Luminance0.2336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8918 #18198A
analogous
#8A5018 #8A8918 #528A18
triadic
#8A8918 #188A89 #89188A
tetradic
#8A8918 #188A50 #18198A #8A1852
square
#8A8918 #188A50 #18198A #8A1852
split-complementary
#8A8918 #18528A #50188A
monochromatic
#222106 #56550F #8A8918 #BEBD21 #DEDC3F

Accessibility & contrast

On white

3.70
#8A8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#8A8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8918
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8918#FFFFFF#000000##000000
##8A89181.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#948075
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8918;
/* rgb */ color: rgb(138, 137, 24);
/* oklch */ color: oklch(61.2% 0.125 109.1);
Tailwind
colors: {
  custom: {
    50: '#b0ab61',
    500: '#8a8918',
    950: '#000000',
  },
}
SCSS
$custom: #8a8918;
$custom-light: #b0ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8918",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 59.474,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61158,
    "c": 0.12545,
    "h": 109.1
  },
  "luminance": 0.23361
}

Semantic roles & 50–950 ramp

primary
#8A8918
secondary
#4041BD
accent
#3CED3B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8918

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

Preview Lab → · Contrast checker → · Palette generator →

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