#8B8A1C#8B8A1C

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

Color values

HEX#8B8A1C
RGBrgb(139, 138, 28)
HSLhsl(59, 66%, 33%)
HSVhsv(59, 80%, 55%)
CMYKcmyk(0%, 0.7%, 79.9%, 45.5%)
CIE-LABlab(55.84, -12.51, 54.04)
CIE-LCHlch(55.84, 55.47, 103.04°)
OKLaboklab(61.5% -0.0405 0.1176)
OKLCHoklch(61.5% 0.124 109)
XYZxyz(19.9463, 23.7504, 4.6320)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A1C #1C1D8B
analogous
#8B521C #8B8A1C #558B1C
triadic
#8B8A1C #1C8B8A #8A1C8B
tetradic
#8B8A1C #1C8B52 #1C1D8B #8B1C55
square
#8B8A1C #1C8B52 #1C1D8B #8B1C55
split-complementary
#8B8A1C #1C558B #521C8B
monochromatic
#252507 #585712 #8B8A1C #BEBD26 #DAD947

Accessibility & contrast

On white

3.65
#8B8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8B8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A1C
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A1C#FFFFFF#000000##000000
##8B8A1C1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b8a1c;
/* rgb */ color: rgb(139, 138, 28);
/* oklch */ color: oklch(61.5% 0.124 109.0);
Tailwind
colors: {
  custom: {
    50: '#b0ab63',
    500: '#8b8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a1c;
$custom-light: #b0ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a1c",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 59.459,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.615,
    "c": 0.12434,
    "h": 109
  },
  "luminance": 0.2375
}

Semantic roles & 50–950 ramp

primary
#8B8A1C
secondary
#4748BC
accent
#40E93E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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