#8A8E2E#8A8E2E

#8A8E2E is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.5% C 0.117 H 111.7°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A8E2E
RGBrgb(138, 142, 46)
HSLhsl(63, 51%, 37%)
HSVhsv(63, 68%, 56%)
CMYKcmyk(2.8%, 0%, 67.6%, 44.3%)
CIE-LABlab(57.02, -14.18, 48.50)
CIE-LCHlch(57.02, 50.53, 106.30°)
OKLaboklab(62.46% -0.0434 0.1092)
OKLCHoklch(62.46% 0.117 111.7)
XYZxyz(20.6480, 24.9470, 6.3118)
Luminance0.2495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E2E #322E8E
analogous
#8E622E #8A8E2E #5A8E2E
triadic
#8A8E2E #2E8A8E #8E2E8A
tetradic
#8A8E2E #2E8E62 #322E8E #8E2E5A
square
#8A8E2E #2E8E62 #322E8E #8E2E5A
split-complementary
#8A8E2E #2E5A8E #622E8E
monochromatic
#303210 #5D601F #8A8E2E #B7BC3D #CACE68

Accessibility & contrast

On white

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

On black

5.99
#8A8E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E2E
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E2E#FFFFFF#000000##000000
##8A8E2E1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998820
Deuteranopia (green-blind)
#998A35
Tritanopia (blue-blind)
#93857B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e2e;
/* rgb */ color: rgb(138, 142, 46);
/* oklch */ color: oklch(62.5% 0.117 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6c',
    500: '#8a8e2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e2e;
$custom-light: #afae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e2e",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 46
  },
  "hsl": {
    "h": 62.5,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62463,
    "c": 0.11748,
    "h": 111.7
  },
  "luminance": 0.24947
}

Semantic roles & 50–950 ramp

primary
#8A8E2E
secondary
#6663B5
accent
#4DDB53
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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