#8A2FB1#8A2FB1

#8A2FB1 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 49.9% C 0.201 H 313.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8A2FB1
RGBrgb(138, 47, 177)
HSLhsl(282, 58%, 44%)
HSVhsv(282, 73%, 69%)
CMYKcmyk(22%, 73.4%, 0%, 30.6%)
CIE-LABlab(38.92, 57.84, -51.61)
CIE-LCHlch(38.92, 77.51, 318.26°)
OKLaboklab(49.91% 0.1383 -0.1457)
OKLCHoklch(49.91% 0.201 313.5)
XYZxyz(19.4322, 10.6112, 42.6110)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FB1 #56B12F
analogous
#492FB1 #8A2FB1 #B12F97
triadic
#8A2FB1 #B18A2F #2FB18A
tetradic
#8A2FB1 #B1492F #56B12F #2F97B1
square
#8A2FB1 #B1492F #56B12F #2F97B1
split-complementary
#8A2FB1 #97B12F #2FB149
monochromatic
#3F1550 #642281 #8A2FB1 #A94DD0 #C07EDD

Accessibility & contrast

On white

6.73
#8A2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A2FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FB1
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FB1#FFFFFF#000000##FFFFFF
##8A2FB11.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#245EAE
Tritanopia (blue-blind)
#864C6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2fb1;
/* rgb */ color: rgb(138, 47, 177);
/* oklch */ color: oklch(49.9% 0.201 313.5);
Tailwind
colors: {
  custom: {
    50: '#b070c9',
    500: '#8a2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fb1;
$custom-light: #b070c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fb1",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 282,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49912,
    "c": 0.20088,
    "h": 313.5
  },
  "luminance": 0.10611
}

Semantic roles & 50–950 ramp

primary
#8A2FB1
secondary
#8EC576
accent
#E14775
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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