#8B8B1C#8B8B1C

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

Color values

HEX#8B8B1C
RGBrgb(139, 139, 28)
HSLhsl(60, 66%, 33%)
HSVhsv(60, 80%, 55%)
CMYKcmyk(0%, 0%, 79.9%, 45.5%)
CIE-LABlab(56.13, -13.05, 54.30)
CIE-LCHlch(56.13, 55.84, 103.51°)
OKLaboklab(61.73% -0.042 0.1181)
OKLCHoklch(61.73% 0.125 109.6)
XYZxyz(20.0904, 24.0387, 4.6800)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B1C #1C1C8B
analogous
#8B531C #8B8B1C #538B1C
triadic
#8B8B1C #1C8B8B #8B1C8B
tetradic
#8B8B1C #1C8B53 #1C1C8B #8B1C53
square
#8B8B1C #1C8B53 #1C1C8B #8B1C53
split-complementary
#8B8B1C #1C538B #531C8B
monochromatic
#252507 #585812 #8B8B1C #BEBE26 #DADA47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8B1C#FFFFFF#000000##000000
##8B8B1C1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b8b1c;
/* rgb */ color: rgb(139, 139, 28);
/* oklch */ color: oklch(61.7% 0.125 109.6);
Tailwind
colors: {
  custom: {
    50: '#b0ac63',
    500: '#8b8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b1c;
$custom-light: #b0ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b1c",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 60,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61731,
    "c": 0.12535,
    "h": 109.6
  },
  "luminance": 0.24038
}

Semantic roles & 50–950 ramp

primary
#8B8B1C
secondary
#4747BC
accent
#3EE93E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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