#8A8C1F#8A8C1F

#8A8C1F is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.9% C 0.125 H 110.6°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A8C1F
RGBrgb(138, 140, 31)
HSLhsl(61, 64%, 34%)
HSVhsv(61, 78%, 55%)
CMYKcmyk(1.4%, 0%, 77.9%, 45.1%)
CIE-LABlab(56.35, -13.91, 53.50)
CIE-LCHlch(56.35, 55.28, 104.57°)
OKLaboklab(61.89% -0.0441 0.117)
OKLCHoklch(61.89% 0.125 110.6)
XYZxyz(20.1074, 24.2589, 4.9193)
Luminance0.2426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C1F #211F8C
analogous
#8C571F #8A8C1F #538C1F
triadic
#8A8C1F #1F8A8C #8C1F8A
tetradic
#8A8C1F #1F8C57 #211F8C #8C1F53
square
#8A8C1F #1F8C57 #211F8C #8C1F53
split-complementary
#8A8C1F #1F538C #571F8C
monochromatic
#272809 #595A14 #8A8C1F #BBBE2A #D5D84E

Accessibility & contrast

On white

3.59
#8A8C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#8A8C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C1F
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C1F#FFFFFF#000000##000000
##8A8C1F1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#988928
Tritanopia (blue-blind)
#948378
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c1f;
/* rgb */ color: rgb(138, 140, 31);
/* oklch */ color: oklch(61.9% 0.125 110.6);
Tailwind
colors: {
  custom: {
    50: '#b0ad64',
    500: '#8a8c1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c1f;
$custom-light: #b0ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c1f",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 61.101,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.6189,
    "c": 0.12506,
    "h": 110.6
  },
  "luminance": 0.24258
}

Semantic roles & 50–950 ramp

primary
#8A8C1F
secondary
#4E4CBB
accent
#41E744
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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