#8A58C4#8A58C4

#8A58C4 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.5% C 0.165 H 302.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A58C4
RGBrgb(138, 88, 196)
HSLhsl(268, 48%, 56%)
HSVhsv(268, 55%, 77%)
CMYKcmyk(29.6%, 55.1%, 0%, 23.1%)
CIE-LABlab(47.45, 42.22, -49.02)
CIE-LCHlch(47.45, 64.70, 310.74°)
OKLaboklab(56.48% 0.0893 -0.1383)
OKLCHoklch(56.48% 0.165 302.9)
XYZxyz(23.9325, 16.3682, 54.1124)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58C4 #92C458
analogous
#585CC4 #8A58C4 #C058C4
triadic
#8A58C4 #C48A58 #58C48A
tetradic
#8A58C4 #C4585C #92C458 #58C4C0
square
#8A58C4 #C4585C #92C458 #58C4C0
split-complementary
#8A58C4 #C4C058 #5CC458
monochromatic
#4E2A77 #6B3AA5 #8A58C4 #AA85D4 #C9B2E4

Accessibility & contrast

On white

4.91
#8A58C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A58C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58C4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58C4#FFFFFF#000000##FFFFFF
##8A58C41.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F70C8
Deuteranopia (green-blind)
#4070C1
Tritanopia (blue-blind)
#7F6D85
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a58c4;
/* rgb */ color: rgb(138, 88, 196);
/* oklch */ color: oklch(56.5% 0.165 302.9);
Tailwind
colors: {
  custom: {
    50: '#af89d6',
    500: '#8a58c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a58c4;
$custom-light: #af89d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58c4",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 196
  },
  "hsl": {
    "h": 267.778,
    "s": 47.788,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56477,
    "c": 0.16463,
    "h": 302.9
  },
  "luminance": 0.16368
}

Semantic roles & 50–950 ramp

primary
#8A58C4
secondary
#BED2A5
accent
#D75099
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A58C4

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

Preview Lab → · Contrast checker → · Palette generator →

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