#8A4F8D#8A4F8D

#8A4F8D is a mid, moderate purple. Relative luminance 0.129; OKLCH L 52.0% C 0.116 H 325.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A4F8D
RGBrgb(138, 79, 141)
HSLhsl(297, 28%, 43%)
HSVhsv(297, 44%, 55%)
CMYKcmyk(2.1%, 44%, 0%, 44.7%)
CIE-LABlab(42.64, 34.82, -24.13)
CIE-LCHlch(42.64, 42.36, 325.27°)
OKLaboklab(51.97% 0.0956 -0.0661)
OKLCHoklch(51.97% 0.116 325.3)
XYZxyz(18.0845, 12.9191, 26.7352)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4F8D #528D4F
analogous
#6B4F8D #8A4F8D #8D4F71
triadic
#8A4F8D #8D8A4F #4F8D8A
tetradic
#8A4F8D #8D6B4F #528D4F #4F718D
square
#8A4F8D #8D6B4F #528D4F #4F718D
split-complementary
#8A4F8D #718D4F #4F8D6B
monochromatic
#3D233F #643966 #8A4F8D #AA6CAD #C194C3

Accessibility & contrast

On white

5.86
#8A4F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A4F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4F8D
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4F8D#FFFFFF#000000##FFFFFF
##8A4F8D1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49608F
Deuteranopia (green-blind)
#59678B
Tritanopia (blue-blind)
#8D5667
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4f8d;
/* rgb */ color: rgb(138, 79, 141);
/* oklch */ color: oklch(52.0% 0.116 325.3);
Tailwind
colors: {
  custom: {
    50: '#ad82ae',
    500: '#8a4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a4f8d;
$custom-light: #ad82ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4f8d",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 297.097,
    "s": 28.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51973,
    "c": 0.1162,
    "h": 325.3
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#8A4F8D
secondary
#8AAF88
accent
#C46368
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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