#8A8E2D#8A8E2D

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

Color values

HEX#8A8E2D
RGBrgb(138, 142, 45)
HSLhsl(62, 52%, 37%)
HSVhsv(62, 68%, 56%)
CMYKcmyk(2.8%, 0%, 68.3%, 44.3%)
CIE-LABlab(57.02, -14.25, 48.91)
CIE-LCHlch(57.02, 50.94, 106.24°)
OKLaboklab(62.46% -0.0436 0.1099)
OKLCHoklch(62.46% 0.118 111.7)
XYZxyz(20.6285, 24.9392, 6.2092)
Luminance0.2494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E2D #312D8E
analogous
#8E622D #8A8E2D #5A8E2D
triadic
#8A8E2D #2D8A8E #8E2D8A
tetradic
#8A8E2D #2D8E62 #312D8E #8E2D5A
square
#8A8E2D #2D8E62 #312D8E #8E2D5A
split-complementary
#8A8E2D #2D5A8E #622D8E
monochromatic
#303110 #5D601E #8A8E2D #B7BC3C #CACF67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8E2D#FFFFFF#000000##000000
##8A8E2D1.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)
#99881F
Deuteranopia (green-blind)
#998A34
Tritanopia (blue-blind)
#93857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e2d;
/* rgb */ color: rgb(138, 142, 45);
/* oklch */ color: oklch(62.5% 0.118 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6c',
    500: '#8a8e2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e2d;
$custom-light: #afae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e2d",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 62.474,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62455,
    "c": 0.11823,
    "h": 111.7
  },
  "luminance": 0.24939
}

Semantic roles & 50–950 ramp

primary
#8A8E2D
secondary
#6561B5
accent
#4CDB52
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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