#8B8B1E#8B8B1E

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

Color values

HEX#8B8B1E
RGBrgb(139, 139, 30)
HSLhsl(60, 64%, 33%)
HSVhsv(60, 78%, 55%)
CMYKcmyk(0%, 0%, 78.4%, 45.5%)
CIE-LABlab(56.14, -12.97, 53.67)
CIE-LCHlch(56.14, 55.22, 103.58°)
OKLaboklab(61.74% -0.0416 0.1172)
OKLCHoklch(61.74% 0.124 109.5)
XYZxyz(20.1152, 24.0486, 4.8103)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B1E #1E1E8B
analogous
#8B541E #8B8B1E #548B1E
triadic
#8B8B1E #1E8B8B #8B1E8B
tetradic
#8B8B1E #1E8B54 #1E1E8B #8B1E54
square
#8B8B1E #1E8B54 #1E1E8B #8B1E54
split-complementary
#8B8B1E #1E548B #541E8B
monochromatic
#262608 #595913 #8B8B1E #BDBD29 #D8D84B

Accessibility & contrast

On white

3.61
#8B8B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8B8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8B1E
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8B1E#FFFFFF#000000##000000
##8B8B1E1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978501
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#958277
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8b8b1e;
/* rgb */ color: rgb(139, 139, 30);
/* oklch */ color: oklch(61.7% 0.124 109.5);
Tailwind
colors: {
  custom: {
    50: '#b0ac64',
    500: '#8b8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b1e;
$custom-light: #b0ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b1e",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 60,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61742,
    "c": 0.12433,
    "h": 109.5
  },
  "luminance": 0.24048
}

Semantic roles & 50–950 ramp

primary
#8B8B1E
secondary
#4A4ABB
accent
#40E740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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