#8A8F2D#8A8F2D

#8A8F2D is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.7% C 0.119 H 112.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A8F2D
RGBrgb(138, 143, 45)
HSLhsl(63, 52%, 37%)
HSVhsv(63, 69%, 56%)
CMYKcmyk(3.5%, 0%, 68.5%, 43.9%)
CIE-LABlab(57.31, -14.77, 49.20)
CIE-LCHlch(57.31, 51.37, 106.71°)
OKLaboklab(62.69% -0.0451 0.1105)
OKLCHoklch(62.69% 0.119 112.2)
XYZxyz(20.7780, 25.2381, 6.2590)
Luminance0.2524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F2D #322D8F
analogous
#8F632D #8A8F2D #598F2D
triadic
#8A8F2D #2D8A8F #8F2D8A
tetradic
#8A8F2D #2D8F63 #322D8F #8F2D59
square
#8A8F2D #2D8F63 #322D8F #8F2D59
split-complementary
#8A8F2D #2D598F #632D8F
monochromatic
#303210 #5D601E #8A8F2D #B7BE3C #CACF67

Accessibility & contrast

On white

3.47
#8A8F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#8A8F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F2D
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F2D#FFFFFF#000000##000000
##8A8F2D1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A881F
Deuteranopia (green-blind)
#9A8B34
Tritanopia (blue-blind)
#93867B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f2d;
/* rgb */ color: rgb(138, 143, 45);
/* oklch */ color: oklch(62.7% 0.119 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf6c',
    500: '#8a8f2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f2d;
$custom-light: #afaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f2d",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 63.061,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62687,
    "c": 0.11936,
    "h": 112.2
  },
  "luminance": 0.25238
}

Semantic roles & 50–950 ramp

primary
#8A8F2D
secondary
#6662B6
accent
#4CDC54
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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