#8B2FA2#8B2FA2

#8B2FA2 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.0% C 0.187 H 318.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8B2FA2
RGBrgb(139, 47, 162)
HSLhsl(288, 55%, 41%)
HSVhsv(288, 71%, 64%)
CMYKcmyk(14.2%, 71%, 0%, 36.5%)
CIE-LABlab(38.08, 55.02, -43.99)
CIE-LCHlch(38.08, 70.44, 321.35°)
OKLaboklab(49.03% 0.1411 -0.1233)
OKLCHoklch(49.03% 0.187 318.8)
XYZxyz(18.1847, 10.1315, 35.1731)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2FA2 #46A22F
analogous
#512FA2 #8B2FA2 #A22F7F
triadic
#8B2FA2 #A28B2F #2FA28B
tetradic
#8B2FA2 #A2512F #46A22F #2F7FA2
square
#8B2FA2 #A2512F #46A22F #2F7FA2
split-complementary
#8B2FA2 #7FA22F #2FA251
monochromatic
#3A1343 #622173 #8B2FA2 #AF45C9 #C375D7

Accessibility & contrast

On white

6.94
#8B2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8B2FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2FA2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2FA2#FFFFFF#000000##FFFFFF
##8B2FA21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#365D9F
Tritanopia (blue-blind)
#8B4565
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2fa2;
/* rgb */ color: rgb(139, 47, 162);
/* oklch */ color: oklch(49.0% 0.187 318.8);
Tailwind
colors: {
  custom: {
    50: '#b070be',
    500: '#8b2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2fa2;
$custom-light: #b070be;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2fa2",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 288,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49028,
    "c": 0.1874,
    "h": 318.8
  },
  "luminance": 0.10131
}

Semantic roles & 50–950 ramp

primary
#8B2FA2
secondary
#7EBF6E
accent
#DE4967
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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