#8B8918#8B8918

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

Color values

HEX#8B8918
RGBrgb(139, 137, 24)
HSLhsl(59, 71%, 32%)
HSVhsv(59, 83%, 55%)
CMYKcmyk(0%, 1.4%, 82.7%, 45.5%)
CIE-LABlab(55.53, -12.12, 54.96)
CIE-LCHlch(55.53, 56.28, 102.44°)
OKLaboklab(61.25% -0.0397 0.1188)
OKLCHoklch(61.25% 0.125 108.5)
XYZxyz(19.7588, 23.4469, 4.3489)
Luminance0.2345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8918 #181A8B
analogous
#8B5018 #8B8918 #538B18
triadic
#8B8918 #188B89 #89188B
tetradic
#8B8918 #188B50 #181A8B #8B1853
square
#8B8918 #188B50 #181A8B #8B1853
split-complementary
#8B8918 #18538B #50188B
monochromatic
#232206 #57560F #8B8918 #BFBC21 #DEDB3F

Accessibility & contrast

On white

3.69
#8B8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#8B8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8918
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8918#FFFFFF#000000##000000
##8B89181.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#967F75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8b8918;
/* rgb */ color: rgb(139, 137, 24);
/* oklch */ color: oklch(61.2% 0.125 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab61',
    500: '#8b8918',
    950: '#000000',
  },
}
SCSS
$custom: #8b8918;
$custom-light: #b1ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8918",
  "rgb": {
    "r": 139,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 58.957,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61249,
    "c": 0.12524,
    "h": 108.5
  },
  "luminance": 0.23446
}

Semantic roles & 50–950 ramp

primary
#8B8918
secondary
#4043BE
accent
#3EED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8B8918

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

Preview Lab → · Contrast checker → · Palette generator →

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