#8A8E2F#8A8E2F

#8A8E2F is a light, moderate yellow. Relative luminance 0.250; 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#8A8E2F
RGBrgb(138, 142, 47)
HSLhsl(63, 50%, 37%)
HSVhsv(63, 67%, 56%)
CMYKcmyk(2.8%, 0%, 66.9%, 44.3%)
CIE-LABlab(57.03, -14.12, 48.09)
CIE-LCHlch(57.03, 50.12, 106.37°)
OKLaboklab(62.47% -0.0431 0.1085)
OKLCHoklch(62.47% 0.117 111.7)
XYZxyz(20.6679, 24.9550, 6.4168)
Luminance0.2495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E2F #332F8E
analogous
#8E632F #8A8E2F #5B8E2F
triadic
#8A8E2F #2F8A8E #8E2F8A
tetradic
#8A8E2F #2F8E63 #332F8E #8E2F5B
square
#8A8E2F #2F8E63 #332F8E #8E2F5B
split-complementary
#8A8E2F #2F5B8E #632F8E
monochromatic
#313211 #5D6020 #8A8E2F #B7BC3E #C9CE6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8E2F#FFFFFF#000000##000000
##8A8E2F1.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)
#998822
Deuteranopia (green-blind)
#998A35
Tritanopia (blue-blind)
#93857B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e2f;
/* rgb */ color: rgb(138, 142, 47);
/* oklch */ color: oklch(62.5% 0.117 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6d',
    500: '#8a8e2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e2f;
$custom-light: #afae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e2f",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 62.526,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62472,
    "c": 0.11672,
    "h": 111.7
  },
  "luminance": 0.24955
}

Semantic roles & 50–950 ramp

primary
#8A8E2F
secondary
#6764B5
accent
#4EDA54
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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