#8B8818#8B8818

#8B8818 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.0% C 0.124 H 107.9°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8B8818
RGBrgb(139, 136, 24)
HSLhsl(58, 71%, 32%)
HSVhsv(58, 83%, 55%)
CMYKcmyk(0%, 2.2%, 82.7%, 45.5%)
CIE-LABlab(55.24, -11.59, 54.71)
CIE-LCHlch(55.24, 55.92, 101.96°)
OKLaboklab(61.02% -0.0382 0.1182)
OKLCHoklch(61.02% 0.124 107.9)
XYZxyz(19.6173, 23.1639, 4.3017)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8818 #181B8B
analogous
#8B4F18 #8B8818 #558B18
triadic
#8B8818 #188B88 #88188B
tetradic
#8B8818 #188B4F #181B8B #8B1855
square
#8B8818 #188B4F #181B8B #8B1855
split-complementary
#8B8818 #18558B #4F188B
monochromatic
#232206 #57550F #8B8818 #BFBB21 #DEDA3F

Accessibility & contrast

On white

3.73
#8B8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#8B8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8818
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8818#FFFFFF#000000##000000
##8B88181.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#967E74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8b8818;
/* rgb */ color: rgb(139, 136, 24);
/* oklch */ color: oklch(61.0% 0.124 107.9);
Tailwind
colors: {
  custom: {
    50: '#b1aa61',
    500: '#8b8818',
    950: '#000000',
  },
}
SCSS
$custom: #8b8818;
$custom-light: #b1aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8818",
  "rgb": {
    "r": 139,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 58.435,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61018,
    "c": 0.12426,
    "h": 107.9
  },
  "luminance": 0.23163
}

Semantic roles & 50–950 ramp

primary
#8B8818
secondary
#4044BE
accent
#3FED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8B8818

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

Preview Lab → · Contrast checker → · Palette generator →

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