#8B8B16#8B8B16

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

Color values

HEX#8B8B16
RGBrgb(139, 139, 22)
HSLhsl(60, 73%, 32%)
HSVhsv(60, 84%, 55%)
CMYKcmyk(0%, 0%, 84.2%, 45.5%)
CIE-LABlab(56.10, -13.26, 56.00)
CIE-LCHlch(56.10, 57.55, 103.32°)
OKLaboklab(61.7% -0.043 0.1206)
OKLCHoklch(61.7% 0.128 109.6)
XYZxyz(20.0257, 24.0128, 4.3389)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B16 #16168B
analogous
#8B5116 #8B8B16 #518B16
triadic
#8B8B16 #168B8B #8B168B
tetradic
#8B8B16 #168B51 #16168B #8B1651
square
#8B8B16 #168B51 #16168B #8B1651
split-complementary
#8B8B16 #16518B #51168B
monochromatic
#212105 #56560E #8B8B16 #C0C01E #E0E03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8B16#FFFFFF#000000##000000
##8B8B161.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)
#988822
Tritanopia (blue-blind)
#968176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8b16;
/* rgb */ color: rgb(139, 139, 22);
/* oklch */ color: oklch(61.7% 0.128 109.6);
Tailwind
colors: {
  custom: {
    50: '#b1ac61',
    500: '#8b8b16',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b16;
$custom-light: #b1ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b16",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61702,
    "c": 0.12808,
    "h": 109.6
  },
  "luminance": 0.24012
}

Semantic roles & 50–950 ramp

primary
#8B8B16
secondary
#3E3EBF
accent
#38EF38
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8B8B16

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

Preview Lab → · Contrast checker → · Palette generator →

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