#8A4F99#8A4F99

#8A4F99 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 52.6% C 0.129 H 319.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A4F99
RGBrgb(138, 79, 153)
HSLhsl(288, 32%, 45%)
HSVhsv(288, 48%, 60%)
CMYKcmyk(9.8%, 48.4%, 0%, 40%)
CIE-LABlab(43.21, 37.29, -30.47)
CIE-LCHlch(43.21, 48.16, 320.75°)
OKLaboklab(52.58% 0.0978 -0.0843)
OKLCHoklch(52.58% 0.129 319.2)
XYZxyz(19.0262, 13.2958, 31.6949)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4F99 #5E994F
analogous
#654F99 #8A4F99 #994F83
triadic
#8A4F99 #998A4F #4F998A
tetradic
#8A4F99 #99654F #5E994F #4F8399
square
#8A4F99 #99654F #5E994F #4F8399
split-complementary
#8A4F99 #83994F #4F9965
monochromatic
#412548 #663A71 #8A4F99 #A770B5 #C098CA

Accessibility & contrast

On white

5.74
#8A4F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A4F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4F99
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4F99#FFFFFF#000000##FFFFFF
##8A4F991.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43629C
Deuteranopia (green-blind)
#546897
Tritanopia (blue-blind)
#8A596D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4f99;
/* rgb */ color: rgb(138, 79, 153);
/* oklch */ color: oklch(52.6% 0.129 319.2);
Tailwind
colors: {
  custom: {
    50: '#ae82b7',
    500: '#8a4f99',
    950: '#000000',
  },
}
SCSS
$custom: #8a4f99;
$custom-light: #ae82b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4f99",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 287.838,
    "s": 31.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52578,
    "c": 0.12909,
    "h": 319.2
  },
  "luminance": 0.13295
}

Semantic roles & 50–950 ramp

primary
#8A4F99
secondary
#96B78D
accent
#C86075
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A4F99

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

Preview Lab → · Contrast checker → · Palette generator →

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