#8A58CA#8A58CA

#8A58CA is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.9% C 0.172 H 301.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A58CA
RGBrgb(138, 88, 202)
HSLhsl(266, 52%, 57%)
HSVhsv(266, 56%, 79%)
CMYKcmyk(31.7%, 56.4%, 0%, 20.8%)
CIE-LABlab(47.81, 43.72, -51.90)
CIE-LCHlch(47.81, 67.86, 310.11°)
OKLaboklab(56.86% 0.0895 -0.1468)
OKLCHoklch(56.86% 0.172 301.4)
XYZxyz(24.6291, 16.6469, 57.7813)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58CA #98CA58
analogous
#585FCA #8A58CA #C358CA
triadic
#8A58CA #CA8A58 #58CA8A
tetradic
#8A58CA #CA585F #98CA58 #58CAC3
square
#8A58CA #CA585F #98CA58 #58CAC3
split-complementary
#8A58CA #CAC358 #5FCA58
monochromatic
#4E287F #6B37AE #8A58CA #AB86D9 #CBB5E7

Accessibility & contrast

On white

4.85
#8A58CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8A58CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58CA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58CA#FFFFFF#000000##FFFFFF
##8A58CA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2771CE
Deuteranopia (green-blind)
#3A71C7
Tritanopia (blue-blind)
#7D6F88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a58ca;
/* rgb */ color: rgb(138, 88, 202);
/* oklch */ color: oklch(56.9% 0.172 301.4);
Tailwind
colors: {
  custom: {
    50: '#b089db',
    500: '#8a58ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a58ca;
$custom-light: #b089db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58ca",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 266.316,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56855,
    "c": 0.17189,
    "h": 301.4
  },
  "luminance": 0.16647
}

Semantic roles & 50–950 ramp

primary
#8A58CA
secondary
#C2D6A8
accent
#DB4D9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A58CA

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

Preview Lab → · Contrast checker → · Palette generator →

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