#8A2FC1#8A2FC1

#8A2FC1 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.1% C 0.216 H 308.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A2FC1
RGBrgb(138, 47, 193)
HSLhsl(277, 61%, 47%)
HSVhsv(277, 76%, 76%)
CMYKcmyk(28.5%, 75.6%, 0%, 24.3%)
CIE-LABlab(40.06, 61.22, -59.18)
CIE-LCHlch(40.06, 85.15, 315.97°)
OKLaboklab(51.08% 0.1356 -0.168)
OKLCHoklch(51.08% 0.216 308.9)
XYZxyz(21.1214, 11.2869, 51.5077)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FC1 #66C12F
analogous
#412FC1 #8A2FC1 #C12FAF
triadic
#8A2FC1 #C18A2F #2FC18A
tetradic
#8A2FC1 #C1412F #66C12F #2FAFC1
square
#8A2FC1 #C1412F #66C12F #2FAFC1
split-complementary
#8A2FC1 #AFC12F #2FC141
monochromatic
#44175F #672390 #8A2FC1 #A657D6 #C088E2

Accessibility & contrast

On white

6.45
#8A2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A2FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FC1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FC1#FFFFFF#000000##FFFFFF
##8A2FC11.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#005FBE
Tritanopia (blue-blind)
#825277
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a2fc1;
/* rgb */ color: rgb(138, 47, 193);
/* oklch */ color: oklch(51.1% 0.216 308.9);
Tailwind
colors: {
  custom: {
    50: '#b171d5',
    500: '#8a2fc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fc1;
$custom-light: #b171d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fc1",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 277.397,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51079,
    "c": 0.21588,
    "h": 308.9
  },
  "luminance": 0.11287
}

Semantic roles & 50–950 ramp

primary
#8A2FC1
secondary
#9DCC80
accent
#E44480
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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