#8A8E2A#8A8E2A

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

Color values

HEX#8A8E2A
RGBrgb(138, 142, 42)
HSLhsl(62, 54%, 36%)
HSVhsv(62, 70%, 56%)
CMYKcmyk(2.8%, 0%, 70.4%, 44.3%)
CIE-LABlab(56.99, -14.42, 50.10)
CIE-LCHlch(56.99, 52.14, 106.06°)
OKLaboklab(62.43% -0.0445 0.1119)
OKLCHoklch(62.43% 0.12 111.7)
XYZxyz(20.5728, 24.9169, 5.9158)
Luminance0.2492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E2A #2E2A8E
analogous
#8E602A #8A8E2A #588E2A
triadic
#8A8E2A #2A8A8E #8E2A8A
tetradic
#8A8E2A #2A8E60 #2E2A8E #8E2A58
square
#8A8E2A #2A8E60 #2E2A8E #8E2A58
split-complementary
#8A8E2A #2A588E #602A8E
monochromatic
#2E300E #5C5F1C #8A8E2A #B8BD38 #CCD162

Accessibility & contrast

On white

3.51
#8A8E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#8A8E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E2A
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E2A#FFFFFF#000000##000000
##8A8E2A1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871A
Deuteranopia (green-blind)
#9A8A31
Tritanopia (blue-blind)
#94857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e2a;
/* rgb */ color: rgb(138, 142, 42);
/* oklch */ color: oklch(62.4% 0.120 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6a',
    500: '#8a8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e2a;
$custom-light: #afae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e2a",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 62.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.6243,
    "c": 0.12039,
    "h": 111.7
  },
  "luminance": 0.24916
}

Semantic roles & 50–950 ramp

primary
#8A8E2A
secondary
#615DB6
accent
#4ADE50
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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