#8A58B2#8A58B2

#8A58B2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.4% C 0.143 H 308.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A58B2
RGBrgb(138, 88, 178)
HSLhsl(273, 37%, 52%)
HSVhsv(273, 51%, 70%)
CMYKcmyk(22.5%, 50.6%, 0%, 30.2%)
CIE-LABlab(46.44, 37.87, -40.16)
CIE-LCHlch(46.44, 55.20, 313.32°)
OKLaboklab(55.4% 0.088 -0.1124)
OKLCHoklch(55.4% 0.143 308.1)
XYZxyz(22.0053, 15.5973, 43.9622)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58B2 #80B258
analogous
#5D58B2 #8A58B2 #B258AD
triadic
#8A58B2 #B28A58 #58B28A
tetradic
#8A58B2 #B25D58 #80B258 #58ADB2
square
#8A58B2 #B25D58 #80B258 #58ADB2
split-complementary
#8A58B2 #ADB258 #58B25D
monochromatic
#4B2D62 #6B418C #8A58B2 #A782C5 #C5ACD9

Accessibility & contrast

On white

5.10
#8A58B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A58B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58B2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58B2#FFFFFF#000000##FFFFFF
##8A58B21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#4E6FB0
Tritanopia (blue-blind)
#84677D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a58b2;
/* rgb */ color: rgb(138, 88, 178);
/* oklch */ color: oklch(55.4% 0.143 308.1);
Tailwind
colors: {
  custom: {
    50: '#ae88c9',
    500: '#8a58b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a58b2;
$custom-light: #ae88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58b2",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 273.333,
    "s": 36.885,
    "l": 52.157
  },
  "oklch": {
    "l": 0.554,
    "c": 0.14279,
    "h": 308.1
  },
  "luminance": 0.15597
}

Semantic roles & 50–950 ramp

primary
#8A58B2
secondary
#B1C79F
accent
#CD5B8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8A58B2

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

Preview Lab → · Contrast checker → · Palette generator →

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