#8A20EF#8A20EF

#8A20EF is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.8% C 0.270 H 299.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A20EF
RGBrgb(138, 32, 239)
HSLhsl(271, 87%, 53%)
HSVhsv(271, 87%, 94%)
CMYKcmyk(42.3%, 86.6%, 0%, 6.3%)
CIE-LABlab(42.26, 75.83, -82.03)
CIE-LCHlch(42.26, 111.71, 312.75°)
OKLaboklab(53.77% 0.1321 -0.2349)
OKLCHoklch(53.77% 0.27 299.4)
XYZxyz(26.5737, 12.6679, 82.6897)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20EF #85EF20
analogous
#2220EF #8A20EF #EF20EC
triadic
#8A20EF #EF8A20 #20EF8A
tetradic
#8A20EF #EF2220 #85EF20 #20ECEF
square
#8A20EF #EF2220 #85EF20 #20ECEF
split-complementary
#8A20EF #ECEF20 #20EF22
monochromatic
#4C0A8B #6B0EC4 #8A20EF #A859F3 #C692F7

Accessibility & contrast

On white

5.94
#8A20EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A20EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A20EF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20EF#FFFFFF#000000##FFFFFF
##8A20EF1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063F4
Deuteranopia (green-blind)
#0062EB
Tritanopia (blue-blind)
#71628F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a20ef;
/* rgb */ color: rgb(138, 32, 239);
/* oklch */ color: oklch(53.8% 0.270 299.4);
Tailwind
colors: {
  custom: {
    50: '#b66ef6',
    500: '#8a20ef',
    950: '#000000',
  },
}
SCSS
$custom: #8a20ef;
$custom-light: #b66ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20ef",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 239
  },
  "hsl": {
    "h": 270.725,
    "s": 86.611,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53771,
    "c": 0.26951,
    "h": 299.4
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#8A20EF
secondary
#B4E289
accent
#FD2B91
background
#FCF7FF
surface
#F8EDFF
border
#D1C8D7
text
#120817
muted
#817B85

Preview Lab

Preview with #8A20EF

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

Preview Lab → · Contrast checker → · Palette generator →

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