#8A8A2B#8A8A2B

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

Color values

HEX#8A8A2B
RGBrgb(138, 138, 43)
HSLhsl(60, 52%, 35%)
HSVhsv(60, 69%, 54%)
CMYKcmyk(0%, 0%, 68.8%, 45.9%)
CIE-LABlab(55.84, -12.24, 48.54)
CIE-LCHlch(55.84, 50.06, 104.15°)
OKLaboklab(61.51% -0.0382 0.1088)
OKLCHoklch(61.51% 0.115 109.4)
XYZxyz(20.0064, 23.7552, 5.8164)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A2B #2B2B8A
analogous
#8A5A2B #8A8A2B #5A8A2B
triadic
#8A8A2B #2B8A8A #8A2B8A
tetradic
#8A8A2B #2B8A5A #2B2B8A #8A2B5A
square
#8A8A2B #2B8A5A #2B2B8A #8A2B5A
split-complementary
#8A8A2B #2B5A8A #5A2B8A
monochromatic
#2D2D0E #5B5B1C #8A8A2B #B9B93A #CECE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8a8a2b;
/* rgb */ color: rgb(138, 138, 43);
/* oklch */ color: oklch(61.5% 0.115 109.4);
Tailwind
colors: {
  custom: {
    50: '#afab6a',
    500: '#8a8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a2b;
$custom-light: #afab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a2b",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61512,
    "c": 0.11529,
    "h": 109.4
  },
  "luminance": 0.23755
}

Semantic roles & 50–950 ramp

primary
#8A8A2B
secondary
#5D5DB4
accent
#4CDC4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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