#8A8E1F#8A8E1F

#8A8E1F is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.4% C 0.127 H 111.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A8E1F
RGBrgb(138, 142, 31)
HSLhsl(62, 64%, 34%)
HSVhsv(62, 78%, 56%)
CMYKcmyk(2.8%, 0%, 78.2%, 44.3%)
CIE-LABlab(56.93, -14.97, 54.03)
CIE-LCHlch(56.93, 56.07, 105.48°)
OKLaboklab(62.36% -0.047 0.1182)
OKLCHoklch(62.36% 0.127 111.7)
XYZxyz(20.4023, 24.8487, 5.0176)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E1F #231F8E
analogous
#8E5B1F #8A8E1F #538E1F
triadic
#8A8E1F #1F8A8E #8E1F8A
tetradic
#8A8E1F #1F8E5B #231F8E #8E1F53
square
#8A8E1F #1F8E5B #231F8E #8E1F53
split-complementary
#8A8E1F #1F538E #5B1F8E
monochromatic
#282A09 #595C14 #8A8E1F #BBC02A #D4D94F

Accessibility & contrast

On white

3.52
#8A8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E1F
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E1F#FFFFFF#000000##000000
##8A8E1F1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998701
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#948579
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e1f;
/* rgb */ color: rgb(138, 142, 31);
/* oklch */ color: oklch(62.4% 0.127 111.7);
Tailwind
colors: {
  custom: {
    50: '#b0ae65',
    500: '#8a8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e1f;
$custom-light: #b0ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e1f",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 62.162,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.62356,
    "c": 0.12717,
    "h": 111.7
  },
  "luminance": 0.24848
}

Semantic roles & 50–950 ramp

primary
#8A8E1F
secondary
#514DBB
accent
#41E747
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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