#8B8A16#8B8A16

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

Color values

HEX#8B8A16
RGBrgb(139, 138, 22)
HSLhsl(59, 73%, 32%)
HSVhsv(59, 84%, 55%)
CMYKcmyk(0%, 0.7%, 84.2%, 45.5%)
CIE-LABlab(55.81, -12.72, 55.75)
CIE-LCHlch(55.81, 57.19, 102.85°)
OKLaboklab(61.47% -0.0415 0.1201)
OKLCHoklch(61.47% 0.127 109.1)
XYZxyz(19.8816, 23.7245, 4.2909)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A16 #16178B
analogous
#8B5016 #8B8A16 #528B16
triadic
#8B8A16 #168B8A #8A168B
tetradic
#8B8A16 #168B50 #16178B #8B1652
square
#8B8A16 #168B50 #16178B #8B1652
split-complementary
#8B8A16 #16528B #50168B
monochromatic
#212105 #56560E #8B8A16 #C0BE1E #E0DF3B

Accessibility & contrast

On white

3.66
#8B8A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8B8A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A16
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A16#FFFFFF#000000##000000
##8B8A161.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b8a16;
/* rgb */ color: rgb(139, 138, 22);
/* oklch */ color: oklch(61.5% 0.127 109.1);
Tailwind
colors: {
  custom: {
    50: '#b1ab61',
    500: '#8b8a16',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a16;
$custom-light: #b1ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a16",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 59.487,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61471,
    "c": 0.12709,
    "h": 109.1
  },
  "luminance": 0.23724
}

Semantic roles & 50–950 ramp

primary
#8B8A16
secondary
#3E3FBF
accent
#3AEF38
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8B8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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