#8A8C2B#8A8C2B

#8A8C2B is a mid, moderate yellow. Relative luminance 0.243; OKLCH L 62.0% C 0.117 H 110.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A8C2B
RGBrgb(138, 140, 43)
HSLhsl(61, 53%, 36%)
HSVhsv(61, 69%, 55%)
CMYKcmyk(1.4%, 0%, 69.3%, 45.1%)
CIE-LABlab(56.42, -13.30, 49.13)
CIE-LCHlch(56.42, 50.90, 105.15°)
OKLaboklab(61.97% -0.0412 0.11)
OKLCHoklch(61.97% 0.117 110.5)
XYZxyz(20.2960, 24.3344, 5.9129)
Luminance0.2433 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C2B #2D2B8C
analogous
#8C5D2B #8A8C2B #598C2B
triadic
#8A8C2B #2B8A8C #8C2B8A
tetradic
#8A8C2B #2B8C5D #2D2B8C #8C2B59
square
#8A8C2B #2B8C5D #2D2B8C #8C2B59
split-complementary
#8A8C2B #2B598C #5D2B8C
monochromatic
#2E2E0E #5C5D1D #8A8C2B #B8BB39 #CDCF62

Accessibility & contrast

On white

3.58
#8A8C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#8A8C2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C2B
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C2B#FFFFFF#000000##000000
##8A8C2B1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861C
Deuteranopia (green-blind)
#988932
Tritanopia (blue-blind)
#948379
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c2b;
/* rgb */ color: rgb(138, 140, 43);
/* oklch */ color: oklch(62.0% 0.117 110.5);
Tailwind
colors: {
  custom: {
    50: '#afad6b',
    500: '#8a8c2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c2b;
$custom-light: #afad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c2b",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 61.237,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61974,
    "c": 0.11747,
    "h": 110.5
  },
  "luminance": 0.24334
}

Semantic roles & 50–950 ramp

primary
#8A8C2B
secondary
#605EB5
accent
#4BDC4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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