#8A58D4#8A58D4

#8A58D4 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.5% C 0.184 H 299.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A58D4
RGBrgb(138, 88, 212)
HSLhsl(264, 59%, 59%)
HSVhsv(264, 58%, 83%)
CMYKcmyk(34.9%, 58.5%, 0%, 16.9%)
CIE-LABlab(48.43, 46.24, -56.64)
CIE-LCHlch(48.43, 73.12, 309.23°)
OKLaboklab(57.51% 0.0895 -0.1607)
OKLCHoklch(57.51% 0.184 299.1)
XYZxyz(25.8517, 17.1359, 64.2202)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58D4 #A2D458
analogous
#5864D4 #8A58D4 #C858D4
triadic
#8A58D4 #D48A58 #58D48A
tetradic
#8A58D4 #D45864 #A2D458 #58D4C8
square
#8A58D4 #D45864 #A2D458 #58D4C8
split-complementary
#8A58D4 #D4C858 #64D458
monochromatic
#4F248D #6A31BE #8A58D4 #AC89E1 #CEB9ED

Accessibility & contrast

On white

4.74
#8A58D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8A58D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58D4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58D4#FFFFFF#000000##FFFFFF
##8A58D41.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1373D8
Deuteranopia (green-blind)
#2E72D1
Tritanopia (blue-blind)
#7A728E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a58d4;
/* rgb */ color: rgb(138, 88, 212);
/* oklch */ color: oklch(57.5% 0.184 299.1);
Tailwind
colors: {
  custom: {
    50: '#b089e2',
    500: '#8a58d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a58d4;
$custom-light: #b089e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58d4",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 212
  },
  "hsl": {
    "h": 264.194,
    "s": 59.048,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57508,
    "c": 0.1839,
    "h": 299.1
  },
  "luminance": 0.17136
}

Semantic roles & 50–950 ramp

primary
#8A58D4
secondary
#C9DCAB
accent
#E246A3
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A58D4

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

Preview Lab → · Contrast checker → · Palette generator →

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