#8A3AFF#8A3AFF

#8A3AFF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 57.1% C 0.265 H 294.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A3AFF
RGBrgb(138, 58, 255)
HSLhsl(264, 100%, 61%)
HSVhsv(264, 77%, 100%)
CMYKcmyk(45.9%, 77.3%, 0%, 0%)
CIE-LABlab(46.51, 71.14, -84.02)
CIE-LCHlch(46.51, 110.09, 310.26°)
OKLaboklab(57.13% 0.1114 -0.241)
OKLCHoklch(57.13% 0.265 294.8)
XYZxyz(30.0394, 15.6485, 96.0261)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AFF #AFFF3A
analogous
#3A4DFF #8A3AFF #EC3AFF
triadic
#8A3AFF #FF8A3A #3AFF8A
tetradic
#8A3AFF #FF3A4D #AFFF3A #3AFFEC
square
#8A3AFF #FF3A4D #AFFF3A #3AFFEC
split-complementary
#8A3AFF #FFEC3A #4DFF3A
monochromatic
#4D00BF #6600FC #8A3AFF #AE77FF #D3B4FF

Accessibility & contrast

On white

5.08
#8A3AFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A3AFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AFF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AFF#FFFFFF#000000##FFFFFF
##8A3AFF1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#006BFB
Tritanopia (blue-blind)
#68729C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a3aff;
/* rgb */ color: rgb(138, 58, 255);
/* oklch */ color: oklch(57.1% 0.265 294.8);
Tailwind
colors: {
  custom: {
    50: '#b679ff',
    500: '#8a3aff',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aff;
$custom-light: #b679ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aff",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 255
  },
  "hsl": {
    "h": 264.365,
    "s": 100,
    "l": 61.373
  },
  "oklch": {
    "l": 0.57132,
    "c": 0.26548,
    "h": 294.8
  },
  "luminance": 0.15649
}

Semantic roles & 50–950 ramp

primary
#8A3AFF
secondary
#D1EFA6
accent
#E60088
background
#FCF7FF
surface
#F8EEFF
border
#D1C9D7
text
#120A18
muted
#817C86

Preview Lab

Preview with #8A3AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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