#8A8E2B#8A8E2B

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

Color values

HEX#8A8E2B
RGBrgb(138, 142, 43)
HSLhsl(62, 54%, 36%)
HSVhsv(62, 70%, 56%)
CMYKcmyk(2.8%, 0%, 69.7%, 44.3%)
CIE-LABlab(57.00, -14.37, 49.71)
CIE-LCHlch(57.00, 51.74, 106.12°)
OKLaboklab(62.44% -0.0442 0.1112)
OKLCHoklch(62.44% 0.12 111.7)
XYZxyz(20.5909, 24.9242, 6.0112)
Luminance0.2492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E2B #2F2B8E
analogous
#8E612B #8A8E2B #598E2B
triadic
#8A8E2B #2B8A8E #8E2B8A
tetradic
#8A8E2B #2B8E61 #2F2B8E #8E2B59
square
#8A8E2B #2B8E61 #2F2B8E #8E2B59
split-complementary
#8A8E2B #2B598E #612B8E
monochromatic
#2F300F #5C5F1D #8A8E2B #B8BD39 #CCD063

Accessibility & contrast

On white

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

On black

5.98
#8A8E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E2B
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E2B#FFFFFF#000000##000000
##8A8E2B1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871C
Deuteranopia (green-blind)
#998A32
Tritanopia (blue-blind)
#94857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e2b;
/* rgb */ color: rgb(138, 142, 43);
/* oklch */ color: oklch(62.4% 0.120 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae6b',
    500: '#8a8e2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e2b;
$custom-light: #afae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e2b",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 62.424,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62438,
    "c": 0.11969,
    "h": 111.7
  },
  "luminance": 0.24924
}

Semantic roles & 50–950 ramp

primary
#8A8E2B
secondary
#625FB6
accent
#4BDD51
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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