#8A8A2C#8A8A2C

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

Color values

HEX#8A8A2C
RGBrgb(138, 138, 44)
HSLhsl(60, 52%, 36%)
HSVhsv(60, 68%, 54%)
CMYKcmyk(0%, 0%, 68.1%, 45.9%)
CIE-LABlab(55.85, -12.18, 48.14)
CIE-LCHlch(55.85, 49.65, 104.20°)
OKLaboklab(61.52% -0.0379 0.1081)
OKLCHoklch(61.52% 0.115 109.3)
XYZxyz(20.0250, 23.7627, 5.9142)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A2C #2C2C8A
analogous
#8A5B2C #8A8A2C #5B8A2C
triadic
#8A8A2C #2C8A8A #8A2C8A
tetradic
#8A8A2C #2C8A5B #2C2C8A #8A2C5B
square
#8A8A2C #2C8A5B #2C2C8A #8A2C5B
split-complementary
#8A8A2C #2C5B8A #5B2C8A
monochromatic
#2D2D0E #5C5C1D #8A8A2C #B8B83B #CDCD63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8A2C#FFFFFF#000000##000000
##8A8A2C1.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)
#95841E
Deuteranopia (green-blind)
#968732
Tritanopia (blue-blind)
#948177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a2c;
/* rgb */ color: rgb(138, 138, 44);
/* oklch */ color: oklch(61.5% 0.115 109.3);
Tailwind
colors: {
  custom: {
    50: '#afab6b',
    500: '#8a8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a2c;
$custom-light: #afab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a2c",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 60,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6152,
    "c": 0.11455,
    "h": 109.3
  },
  "luminance": 0.23762
}

Semantic roles & 50–950 ramp

primary
#8A8A2C
secondary
#5E5EB4
accent
#4DDB4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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