#8B8B1F#8B8B1F

#8B8B1F is a mid, vivid yellow. Relative luminance 0.241; 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#8B8B1F
RGBrgb(139, 139, 31)
HSLhsl(60, 64%, 33%)
HSVhsv(60, 78%, 55%)
CMYKcmyk(0%, 0%, 77.7%, 45.5%)
CIE-LABlab(56.14, -12.93, 53.35)
CIE-LCHlch(56.14, 54.89, 103.62°)
OKLaboklab(61.75% -0.0414 0.1167)
OKLCHoklch(61.75% 0.124 109.5)
XYZxyz(20.1282, 24.0537, 4.8786)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B1F #1F1F8B
analogous
#8B551F #8B8B1F #558B1F
triadic
#8B8B1F #1F8B8B #8B1F8B
tetradic
#8B8B1F #1F8B55 #1F1F8B #8B1F55
square
#8B8B1F #1F8B55 #1F1F8B #8B1F55
split-complementary
#8B8B1F #1F558B #551F8B
monochromatic
#272709 #595914 #8B8B1F #BDBD2A #D7D74D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8B1F#FFFFFF#000000##000000
##8B8B1F1.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)
#978503
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#958277
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8b8b1f;
/* rgb */ color: rgb(139, 139, 31);
/* oklch */ color: oklch(61.7% 0.124 109.5);
Tailwind
colors: {
  custom: {
    50: '#b0ac64',
    500: '#8b8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b1f;
$custom-light: #b0ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b1f",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61748,
    "c": 0.12379,
    "h": 109.5
  },
  "luminance": 0.24053
}

Semantic roles & 50–950 ramp

primary
#8B8B1F
secondary
#4C4CBA
accent
#41E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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