#8A2EE1#8A2EE1

#8A2EE1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.5% C 0.247 H 301.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A2EE1
RGBrgb(138, 46, 225)
HSLhsl(271, 75%, 53%)
HSVhsv(271, 80%, 88%)
CMYKcmyk(38.7%, 79.6%, 0%, 11.8%)
CIE-LABlab(42.45, 68.61, -73.76)
CIE-LCHlch(42.45, 100.74, 312.93°)
OKLaboklab(53.53% 0.1286 -0.2108)
OKLCHoklch(53.53% 0.247 301.4)
XYZxyz(25.0455, 12.7933, 72.3694)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EE1 #85E12E
analogous
#302EE1 #8A2EE1 #E12EDE
triadic
#8A2EE1 #E18A2E #2EE18A
tetradic
#8A2EE1 #E1302E #85E12E #2EDEE1
square
#8A2EE1 #E1302E #85E12E #2EDEE1
split-complementary
#8A2EE1 #DEE12E #2EE130
monochromatic
#4C1382 #6B1AB7 #8A2EE1 #A864E9 #C699F0

Accessibility & contrast

On white

5.90
#8A2EE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A2EE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EE1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EE1#FFFFFF#000000##FFFFFF
##8A2EE11.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0063DE
Tritanopia (blue-blind)
#766089
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a2ee1;
/* rgb */ color: rgb(138, 46, 225);
/* oklch */ color: oklch(53.5% 0.247 301.4);
Tailwind
colors: {
  custom: {
    50: '#b472ec',
    500: '#8a2ee1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ee1;
$custom-light: #b472ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ee1",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 225
  },
  "hsl": {
    "h": 270.838,
    "s": 74.895,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53533,
    "c": 0.2469,
    "h": 301.4
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#8A2EE1
secondary
#B4DC8F
accent
#F23691
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A2EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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