#8B8A18#8B8A18

#8B8A18 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.126 H 109.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8B8A18
RGBrgb(139, 138, 24)
HSLhsl(59, 71%, 32%)
HSVhsv(59, 83%, 55%)
CMYKcmyk(0%, 0.7%, 82.7%, 45.5%)
CIE-LABlab(55.82, -12.66, 55.21)
CIE-LCHlch(55.82, 56.64, 102.91°)
OKLaboklab(61.48% -0.0412 0.1193)
OKLCHoklch(61.48% 0.126 109.1)
XYZxyz(19.9016, 23.7325, 4.3965)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A18 #18198B
analogous
#8B5118 #8B8A18 #538B18
triadic
#8B8A18 #188B8A #8A188B
tetradic
#8B8A18 #188B51 #18198B #8B1853
square
#8B8A18 #188B51 #18198B #8B1853
split-complementary
#8B8A18 #18538B #51188B
monochromatic
#232206 #57560F #8B8A18 #BFBE21 #DEDD3F

Accessibility & contrast

On white

3.65
#8B8A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8B8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A18
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A18#FFFFFF#000000##000000
##8B8A181.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#968076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a18;
/* rgb */ color: rgb(139, 138, 24);
/* oklch */ color: oklch(61.5% 0.126 109.1);
Tailwind
colors: {
  custom: {
    50: '#b1ab61',
    500: '#8b8a18',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a18;
$custom-light: #b1ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a18",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 59.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.6148,
    "c": 0.12623,
    "h": 109.1
  },
  "luminance": 0.23732
}

Semantic roles & 50–950 ramp

primary
#8B8A18
secondary
#4042BE
accent
#3CED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8B8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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