#8B8A1F#8B8A1F

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

Color values

HEX#8B8A1F
RGBrgb(139, 138, 31)
HSLhsl(59, 64%, 33%)
HSVhsv(59, 78%, 55%)
CMYKcmyk(0%, 0.7%, 77.7%, 45.5%)
CIE-LABlab(55.85, -12.39, 53.08)
CIE-LCHlch(55.85, 54.51, 103.14°)
OKLaboklab(61.52% -0.0399 0.1161)
OKLCHoklch(61.52% 0.123 109)
XYZxyz(19.9840, 23.7655, 4.8306)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A1F #1F208B
analogous
#8B541F #8B8A1F #568B1F
triadic
#8B8A1F #1F8B8A #8A1F8B
tetradic
#8B8A1F #1F8B54 #1F208B #8B1F56
square
#8B8A1F #1F8B54 #1F208B #8B1F56
split-complementary
#8B8A1F #1F568B #541F8B
monochromatic
#272709 #595814 #8B8A1F #BDBC2A #D7D64D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8A1F#FFFFFF#000000##000000
##8B8A1F1.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)
#968404
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#958176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a1f;
/* rgb */ color: rgb(139, 138, 31);
/* oklch */ color: oklch(61.5% 0.123 109.0);
Tailwind
colors: {
  custom: {
    50: '#b0ab64',
    500: '#8b8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a1f;
$custom-light: #b0ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a1f",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 59.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61517,
    "c": 0.12277,
    "h": 109
  },
  "luminance": 0.23765
}

Semantic roles & 50–950 ramp

primary
#8B8A1F
secondary
#4C4DBA
accent
#43E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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