#8A8A2A#8A8A2A

#8A8A2A is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.116 H 109.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A8A2A
RGBrgb(138, 138, 42)
HSLhsl(60, 53%, 35%)
HSVhsv(60, 70%, 54%)
CMYKcmyk(0%, 0%, 69.6%, 45.9%)
CIE-LABlab(55.83, -12.29, 48.94)
CIE-LCHlch(55.83, 50.46, 104.10°)
OKLaboklab(61.5% -0.0385 0.1094)
OKLCHoklch(61.5% 0.116 109.4)
XYZxyz(19.9883, 23.7480, 5.7209)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A2A #2A2A8A
analogous
#8A5A2A #8A8A2A #5A8A2A
triadic
#8A8A2A #2A8A8A #8A2A8A
tetradic
#8A8A2A #2A8A5A #2A2A8A #8A2A5A
square
#8A8A2A #2A8A5A #2A2A8A #8A2A5A
split-complementary
#8A8A2A #2A5A8A #5A2A8A
monochromatic
#2C2C0D #5B5B1C #8A8A2A #B9B938 #CFCF60

Accessibility & contrast

On white

3.65
#8A8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8A8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A2A
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A2A#FFFFFF#000000##000000
##8A8A2A1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#968731
Tritanopia (blue-blind)
#948177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a2a;
/* rgb */ color: rgb(138, 138, 42);
/* oklch */ color: oklch(61.5% 0.116 109.4);
Tailwind
colors: {
  custom: {
    50: '#afab6a',
    500: '#8a8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a2a;
$custom-light: #afab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a2a",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 60,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61503,
    "c": 0.11601,
    "h": 109.4
  },
  "luminance": 0.23747
}

Semantic roles & 50–950 ramp

primary
#8A8A2A
secondary
#5B5BB4
accent
#4BDD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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