#8A8D1F#8A8D1F

#8A8D1F is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.126 H 111.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A8D1F
RGBrgb(138, 141, 31)
HSLhsl(62, 64%, 34%)
HSVhsv(62, 78%, 55%)
CMYKcmyk(2.1%, 0%, 78%, 44.7%)
CIE-LABlab(56.64, -14.44, 53.77)
CIE-LCHlch(56.64, 55.67, 105.03°)
OKLaboklab(62.12% -0.0456 0.1176)
OKLCHoklch(62.12% 0.126 111.2)
XYZxyz(20.2541, 24.5525, 4.9682)
Luminance0.2455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D1F #221F8D
analogous
#8D591F #8A8D1F #538D1F
triadic
#8A8D1F #1F8A8D #8D1F8A
tetradic
#8A8D1F #1F8D59 #221F8D #8D1F53
square
#8A8D1F #1F8D59 #221F8D #8D1F53
split-complementary
#8A8D1F #1F538D #591F8D
monochromatic
#282909 #595B14 #8A8D1F #BBBF2A #D4D84E

Accessibility & contrast

On white

3.55
#8A8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8A8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D1F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D1F#FFFFFF#000000##000000
##8A8D1F1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#948479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d1f;
/* rgb */ color: rgb(138, 141, 31);
/* oklch */ color: oklch(62.1% 0.126 111.2);
Tailwind
colors: {
  custom: {
    50: '#b0ae65',
    500: '#8a8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d1f;
$custom-light: #b0ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d1f",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 61.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.62123,
    "c": 0.12612,
    "h": 111.2
  },
  "luminance": 0.24552
}

Semantic roles & 50–950 ramp

primary
#8A8D1F
secondary
#504DBB
accent
#41E745
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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