#8A58BB#8A58BB

#8A58BB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.9% C 0.154 H 305.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A58BB
RGBrgb(138, 88, 187)
HSLhsl(270, 42%, 54%)
HSVhsv(270, 53%, 73%)
CMYKcmyk(26.2%, 52.9%, 0%, 26.7%)
CIE-LABlab(46.94, 40.02, -44.63)
CIE-LCHlch(46.94, 59.95, 311.89°)
OKLaboklab(55.93% 0.0888 -0.1254)
OKLCHoklch(55.93% 0.154 305.3)
XYZxyz(22.9387, 15.9707, 48.8783)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58BB #89BB58
analogous
#5958BB #8A58BB #BB58BB
triadic
#8A58BB #BB8A58 #58BB8A
tetradic
#8A58BB #BB5958 #89BB58 #58BBBB
square
#8A58BB #BB5958 #89BB58 #58BBBB
split-complementary
#8A58BB #BBBB58 #58BB59
monochromatic
#4D2C6C #6B3E98 #8A58BB #A883CD #C7AFDE

Accessibility & contrast

On white

5.01
#8A58BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A58BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58BB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58BB#FFFFFF#000000##FFFFFF
##8A58BB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBE
Deuteranopia (green-blind)
#486FB9
Tritanopia (blue-blind)
#826A81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a58bb;
/* rgb */ color: rgb(138, 88, 187);
/* oklch */ color: oklch(55.9% 0.154 305.3);
Tailwind
colors: {
  custom: {
    50: '#af89d0',
    500: '#8a58bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a58bb;
$custom-light: #af89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58bb",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 270.303,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55927,
    "c": 0.15371,
    "h": 305.3
  },
  "luminance": 0.15971
}

Semantic roles & 50–950 ramp

primary
#8A58BB
secondary
#B7CDA2
accent
#D25693
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A58BB

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

Preview Lab → · Contrast checker → · Palette generator →

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