#8A8E2C#8A8E2C

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

Color values

HEX#8A8E2C
RGBrgb(138, 142, 44)
HSLhsl(62, 53%, 36%)
HSVhsv(62, 69%, 56%)
CMYKcmyk(2.8%, 0%, 69%, 44.3%)
CIE-LABlab(57.01, -14.31, 49.31)
CIE-LCHlch(57.01, 51.35, 106.18°)
OKLaboklab(62.45% -0.0439 0.1106)
OKLCHoklch(62.45% 0.119 111.7)
XYZxyz(20.6095, 24.9316, 6.1090)
Luminance0.2493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E2C #302C8E
analogous
#8E612C #8A8E2C #598E2C
triadic
#8A8E2C #2C8A8E #8E2C8A
tetradic
#8A8E2C #2C8E61 #302C8E #8E2C59
square
#8A8E2C #2C8E61 #302C8E #8E2C59
split-complementary
#8A8E2C #2C598E #612C8E
monochromatic
#2F310F #5D5F1E #8A8E2C #B7BD3A #CBCF65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8E2C#FFFFFF#000000##000000
##8A8E2C1.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)
#99881D
Deuteranopia (green-blind)
#998A33
Tritanopia (blue-blind)
#93857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e2c;
/* rgb */ color: rgb(138, 142, 44);
/* oklch */ color: oklch(62.4% 0.119 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6b',
    500: '#8a8e2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e2c;
$custom-light: #afae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e2c",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 62.449,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62446,
    "c": 0.11896,
    "h": 111.7
  },
  "luminance": 0.24931
}

Semantic roles & 50–950 ramp

primary
#8A8E2C
secondary
#6460B6
accent
#4CDC52
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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