#8A58E1#8A58E1

#8A58E1 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.4% C 0.199 H 296.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A58E1
RGBrgb(138, 88, 225)
HSLhsl(262, 70%, 61%)
HSVhsv(262, 61%, 88%)
CMYKcmyk(38.7%, 60.9%, 0%, 11.8%)
CIE-LABlab(49.28, 49.57, -62.67)
CIE-LCHlch(49.28, 79.90, 308.35°)
OKLaboklab(58.39% 0.089 -0.1784)
OKLCHoklch(58.39% 0.199 296.5)
XYZxyz(27.5581, 17.8185, 73.2069)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58E1 #AFE158
analogous
#586BE1 #8A58E1 #CF58E1
triadic
#8A58E1 #E18A58 #58E18A
tetradic
#8A58E1 #E1586B #AFE158 #58E1CF
square
#8A58E1 #E1586B #AFE158 #58E1CF
split-complementary
#8A58E1 #E1CF58 #6BE158
monochromatic
#4D1DA2 #6626D5 #8A58E1 #AE8CEA #D3C0F4

Accessibility & contrast

On white

4.60
#8A58E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8A58E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58E1
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58E1#FFFFFF#000000##FFFFFF
##8A58E11.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#1173DE
Tritanopia (blue-blind)
#757694
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a58e1;
/* rgb */ color: rgb(138, 88, 225);
/* oklch */ color: oklch(58.4% 0.199 296.5);
Tailwind
colors: {
  custom: {
    50: '#b289eb',
    500: '#8a58e1',
    950: '#000000',
  },
}
SCSS
$custom: #8a58e1;
$custom-light: #b289eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58e1",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 225
  },
  "hsl": {
    "h": 261.898,
    "s": 69.543,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58393,
    "c": 0.19937,
    "h": 296.5
  },
  "luminance": 0.17819
}

Semantic roles & 50–950 ramp

primary
#8A58E1
secondary
#D1E4B1
accent
#D2148C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A58E1

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

Preview Lab → · Contrast checker → · Palette generator →

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