#8A58E4#8A58E4

#8A58E4 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.6% C 0.203 H 296.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A58E4
RGBrgb(138, 88, 228)
HSLhsl(261, 72%, 62%)
HSVhsv(261, 61%, 89%)
CMYKcmyk(39.5%, 61.4%, 0%, 10.6%)
CIE-LABlab(49.48, 50.35, -64.04)
CIE-LCHlch(49.48, 81.46, 308.18°)
OKLaboklab(58.6% 0.0889 -0.1824)
OKLCHoklch(58.6% 0.203 296)
XYZxyz(27.9709, 17.9836, 75.3812)
Luminance0.1798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58E4 #B2E458
analogous
#586CE4 #8A58E4 #D058E4
triadic
#8A58E4 #E48A58 #58E48A
tetradic
#8A58E4 #E4586C #B2E458 #58E4D0
square
#8A58E4 #E4586C #B2E458 #58E4D0
split-complementary
#8A58E4 #E4D058 #6CE458
monochromatic
#4D1BA7 #6523DB #8A58E4 #AF8DED #D4C1F5

Accessibility & contrast

On white

4.57
#8A58E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8A58E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A58E4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58E4#FFFFFF#000000##000000
##8A58E41.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0274E1
Tritanopia (blue-blind)
#737796
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a58e4;
/* rgb */ color: rgb(138, 88, 228);
/* oklch */ color: oklch(58.6% 0.203 296.0);
Tailwind
colors: {
  custom: {
    50: '#b289ed',
    500: '#8a58e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a58e4;
$custom-light: #b289ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58e4",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 261.429,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58603,
    "c": 0.20292,
    "h": 296
  },
  "luminance": 0.17984
}

Semantic roles & 50–950 ramp

primary
#8A58E4
secondary
#D3E6B2
accent
#D4118F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A58E4

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

Preview Lab → · Contrast checker → · Palette generator →

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