#8A58D2#8A58D2

#8A58D2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.4% C 0.182 H 299.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A58D2
RGBrgb(138, 88, 210)
HSLhsl(265, 58%, 58%)
HSVhsv(265, 58%, 82%)
CMYKcmyk(34.3%, 58.1%, 0%, 17.6%)
CIE-LABlab(48.30, 45.73, -55.70)
CIE-LCHlch(48.30, 72.07, 309.39°)
OKLaboklab(57.38% 0.0895 -0.1579)
OKLCHoklch(57.38% 0.182 299.6)
XYZxyz(25.6010, 17.0356, 62.8997)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58D2 #A0D258
analogous
#5863D2 #8A58D2 #C758D2
triadic
#8A58D2 #D28A58 #58D28A
tetradic
#8A58D2 #D25863 #A0D258 #58D2C7
square
#8A58D2 #D25863 #A0D258 #58D2C7
split-complementary
#8A58D2 #D2C758 #63D258
monochromatic
#4F258A #6A32BB #8A58D2 #AC88DF #CEB8EC

Accessibility & contrast

On white

4.76
#8A58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A58D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58D2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58D2#FFFFFF#000000##FFFFFF
##8A58D21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1872D6
Deuteranopia (green-blind)
#3172CF
Tritanopia (blue-blind)
#7B718D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a58d2;
/* rgb */ color: rgb(138, 88, 210);
/* oklch */ color: oklch(57.4% 0.182 299.6);
Tailwind
colors: {
  custom: {
    50: '#b089e0',
    500: '#8a58d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a58d2;
$custom-light: #b089e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58d2",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 264.59,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57375,
    "c": 0.18151,
    "h": 299.6
  },
  "luminance": 0.17036
}

Semantic roles & 50–950 ramp

primary
#8A58D2
secondary
#C7DBAB
accent
#E147A2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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