#8A58B4#8A58B4

#8A58B4 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.5% C 0.145 H 307.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A58B4
RGBrgb(138, 88, 180)
HSLhsl(273, 38%, 53%)
HSVhsv(273, 51%, 71%)
CMYKcmyk(23.3%, 51.1%, 0%, 29.4%)
CIE-LABlab(46.55, 38.35, -41.16)
CIE-LCHlch(46.55, 56.26, 312.97°)
OKLaboklab(55.52% 0.0882 -0.1153)
OKLCHoklch(55.52% 0.145 307.4)
XYZxyz(22.2075, 15.6783, 45.0275)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58B4 #82B458
analogous
#5C58B4 #8A58B4 #B458B0
triadic
#8A58B4 #B48A58 #58B48A
tetradic
#8A58B4 #B45C58 #82B458 #58B0B4
square
#8A58B4 #B45C58 #82B458 #58B0B4
split-complementary
#8A58B4 #B0B458 #58B45C
monochromatic
#4B2D64 #6B408F #8A58B4 #A882C7 #C5ACDA

Accessibility & contrast

On white

5.08
#8A58B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A58B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58B4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58B4#FFFFFF#000000##FFFFFF
##8A58B41.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB7
Deuteranopia (green-blind)
#4D6FB2
Tritanopia (blue-blind)
#84687E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a58b4;
/* rgb */ color: rgb(138, 88, 180);
/* oklch */ color: oklch(55.5% 0.145 307.4);
Tailwind
colors: {
  custom: {
    50: '#ae89cb',
    500: '#8a58b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a58b4;
$custom-light: #ae89cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58b4",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 180
  },
  "hsl": {
    "h": 272.609,
    "s": 38.017,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55515,
    "c": 0.14522,
    "h": 307.4
  },
  "luminance": 0.15678
}

Semantic roles & 50–950 ramp

primary
#8A58B4
secondary
#B2C8A0
accent
#CE5A8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A58B4

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

Preview Lab → · Contrast checker → · Palette generator →

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