#8A8B2D#8A8B2D

#8A8B2D is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.115 H 109.9°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A8B2D
RGBrgb(138, 139, 45)
HSLhsl(61, 51%, 36%)
HSVhsv(61, 68%, 55%)
CMYKcmyk(0.7%, 0%, 67.6%, 45.5%)
CIE-LABlab(56.15, -12.65, 48.02)
CIE-LCHlch(56.15, 49.66, 104.76°)
OKLaboklab(61.76% -0.0392 0.108)
OKLCHoklch(61.76% 0.115 109.9)
XYZxyz(20.1882, 24.0585, 6.0624)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B2D #2E2D8B
analogous
#8B5D2D #8A8B2D #5B8B2D
triadic
#8A8B2D #2D8A8B #8B2D8A
tetradic
#8A8B2D #2D8B5D #2E2D8B #8B2D5B
square
#8A8B2D #2D8B5D #2E2D8B #8B2D5B
split-complementary
#8A8B2D #2D5B8B #5D2D8B
monochromatic
#2E2F0F #5C5D1E #8A8B2D #B8B93C #CCCD65

Accessibility & contrast

On white

3.61
#8A8B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8B2D#FFFFFF#000000##000000
##8A8B2D1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968520
Deuteranopia (green-blind)
#978833
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b2d;
/* rgb */ color: rgb(138, 139, 45);
/* oklch */ color: oklch(61.8% 0.115 109.9);
Tailwind
colors: {
  custom: {
    50: '#afac6c',
    500: '#8a8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b2d;
$custom-light: #afac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b2d",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 60.638,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.6176,
    "c": 0.11489,
    "h": 109.9
  },
  "luminance": 0.24058
}

Semantic roles & 50–950 ramp

primary
#8A8B2D
secondary
#6160B4
accent
#4DDB4F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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