#8A8B2A#8A8B2A

#8A8B2A is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.117 H 110.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A8B2A
RGBrgb(138, 139, 42)
HSLhsl(61, 54%, 35%)
HSVhsv(61, 70%, 55%)
CMYKcmyk(0.7%, 0%, 69.8%, 45.5%)
CIE-LABlab(56.12, -12.83, 49.23)
CIE-LCHlch(56.12, 50.88, 104.61°)
OKLaboklab(61.73% -0.04 0.1101)
OKLCHoklch(61.73% 0.117 110)
XYZxyz(20.1324, 24.0362, 5.7690)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B2A #2B2A8B
analogous
#8B5C2A #8A8B2A #598B2A
triadic
#8A8B2A #2A8A8B #8B2A8A
tetradic
#8A8B2A #2A8B5C #2B2A8B #8B2A59
square
#8A8B2A #2A8B5C #2B2A8B #8B2A59
split-complementary
#8A8B2A #2A598B #5C2A8B
monochromatic
#2D2D0E #5B5C1C #8A8B2A #B9BA38 #CECF60

Accessibility & contrast

On white

3.62
#8A8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8A8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B2A
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B2A#FFFFFF#000000##000000
##8A8B2A1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851B
Deuteranopia (green-blind)
#978831
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b2a;
/* rgb */ color: rgb(138, 139, 42);
/* oklch */ color: oklch(61.7% 0.117 110.0);
Tailwind
colors: {
  custom: {
    50: '#afac6a',
    500: '#8a8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b2a;
$custom-light: #afac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b2a",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 60.619,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61735,
    "c": 0.11709,
    "h": 110
  },
  "luminance": 0.24036
}

Semantic roles & 50–950 ramp

primary
#8A8B2A
secondary
#5D5CB5
accent
#4BDD4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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