#8A58A6#8A58A6

#8A58A6 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.7% C 0.128 H 312.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A58A6
RGBrgb(138, 88, 166)
HSLhsl(278, 31%, 50%)
HSVhsv(278, 47%, 65%)
CMYKcmyk(16.9%, 47%, 0%, 34.9%)
CIE-LABlab(45.82, 35.10, -34.09)
CIE-LCHlch(45.82, 48.93, 315.83°)
OKLaboklab(54.74% 0.0865 -0.0948)
OKLCHoklch(54.74% 0.128 312.4)
XYZxyz(20.8527, 15.1363, 37.8921)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58A6 #74A658
analogous
#6358A6 #8A58A6 #A6589B
triadic
#8A58A6 #A68A58 #58A68A
tetradic
#8A58A6 #A66358 #74A658 #589BA6
square
#8A58A6 #A66358 #74A658 #589BA6
split-complementary
#8A58A6 #9BA658 #58A663
monochromatic
#472E56 #69437E #8A58A6 #A680BC #C2A8D1

Accessibility & contrast

On white

5.21
#8A58A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A58A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58A6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58A6#FFFFFF#000000##FFFFFF
##8A58A61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476AA9
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#876477
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a58a6;
/* rgb */ color: rgb(138, 88, 166);
/* oklch */ color: oklch(54.7% 0.128 312.4);
Tailwind
colors: {
  custom: {
    50: '#ae88c1',
    500: '#8a58a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a58a6;
$custom-light: #ae88c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58a6",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 166
  },
  "hsl": {
    "h": 278.462,
    "s": 30.709,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54736,
    "c": 0.12831,
    "h": 312.4
  },
  "luminance": 0.15136
}

Semantic roles & 50–950 ramp

primary
#8A58A6
secondary
#A8BF9B
accent
#C76186
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A58A6

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

Preview Lab → · Contrast checker → · Palette generator →

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