#8A2FB6#8A2FB6

#8A2FB6 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.206 H 312.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8A2FB6
RGBrgb(138, 47, 182)
HSLhsl(280, 59%, 45%)
HSVhsv(280, 74%, 71%)
CMYKcmyk(24.2%, 74.2%, 0%, 28.6%)
CIE-LABlab(39.27, 58.88, -54.00)
CIE-LCHlch(39.27, 79.89, 317.47°)
OKLaboklab(50.27% 0.1376 -0.1527)
OKLCHoklch(50.27% 0.206 312)
XYZxyz(19.9397, 10.8143, 45.2839)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FB6 #5BB62F
analogous
#462FB6 #8A2FB6 #B62F9F
triadic
#8A2FB6 #B68A2F #2FB68A
tetradic
#8A2FB6 #B6462F #5BB62F #2F9FB6
square
#8A2FB6 #B6462F #5BB62F #2F9FB6
split-complementary
#8A2FB6 #9FB62F #2FB646
monochromatic
#401655 #652285 #8A2FB6 #A850D2 #C081DE

Accessibility & contrast

On white

6.64
#8A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A2FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FB6
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FB6#FFFFFF#000000##FFFFFF
##8A2FB61.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BA
Deuteranopia (green-blind)
#1B5EB3
Tritanopia (blue-blind)
#854E70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2fb6;
/* rgb */ color: rgb(138, 47, 182);
/* oklch */ color: oklch(50.3% 0.206 312.0);
Tailwind
colors: {
  custom: {
    50: '#b171cd',
    500: '#8a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fb6;
$custom-light: #b171cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fb6",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 280.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.20555,
    "h": 312
  },
  "luminance": 0.10814
}

Semantic roles & 50–950 ramp

primary
#8A2FB6
secondary
#93C779
accent
#E24679
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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