#8B8B18#8B8B18

#8B8B18 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.127 H 109.6°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8B8B18
RGBrgb(139, 139, 24)
HSLhsl(60, 71%, 32%)
HSVhsv(60, 83%, 55%)
CMYKcmyk(0%, 0%, 82.7%, 45.5%)
CIE-LABlab(56.11, -13.19, 55.46)
CIE-LCHlch(56.11, 57.01, 103.38°)
OKLaboklab(61.71% -0.0427 0.1199)
OKLCHoklch(61.71% 0.127 109.6)
XYZxyz(20.0457, 24.0208, 4.4445)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B18 #18188B
analogous
#8B5218 #8B8B18 #528B18
triadic
#8B8B18 #188B8B #8B188B
tetradic
#8B8B18 #188B52 #18188B #8B1852
square
#8B8B18 #188B52 #18188B #8B1852
split-complementary
#8B8B18 #18528B #52188B
monochromatic
#232306 #57570F #8B8B18 #BFBF21 #DEDE3F

Accessibility & contrast

On white

3.62
#8B8B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8B8B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8B18
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8B18#FFFFFF#000000##000000
##8B8B181.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#988823
Tritanopia (blue-blind)
#958276
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8b18;
/* rgb */ color: rgb(139, 139, 24);
/* oklch */ color: oklch(61.7% 0.127 109.6);
Tailwind
colors: {
  custom: {
    50: '#b1ac61',
    500: '#8b8b18',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b18;
$custom-light: #b1ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b18",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61711,
    "c": 0.12723,
    "h": 109.6
  },
  "luminance": 0.2402
}

Semantic roles & 50–950 ramp

primary
#8B8B18
secondary
#4040BE
accent
#3AED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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