#8A58DD#8A58DD

#8A58DD is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.1% C 0.195 H 297.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A58DD
RGBrgb(138, 88, 221)
HSLhsl(263, 66%, 61%)
HSVhsv(263, 60%, 87%)
CMYKcmyk(37.6%, 60.2%, 0%, 13.3%)
CIE-LABlab(49.01, 48.54, -60.83)
CIE-LCHlch(49.01, 77.82, 308.59°)
OKLaboklab(58.12% 0.0892 -0.173)
OKLCHoklch(58.12% 0.195 297.3)
XYZxyz(27.0188, 17.6028, 70.3668)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58DD #ABDD58
analogous
#5869DD #8A58DD #CC58DD
triadic
#8A58DD #DD8A58 #58DD8A
tetradic
#8A58DD #DD5869 #ABDD58 #58DDCC
square
#8A58DD #DD5869 #ABDD58 #58DDCC
split-complementary
#8A58DD #DDCC58 #69DD58
monochromatic
#4E209B #682ACE #8A58DD #AE8BE7 #D1BEF2

Accessibility & contrast

On white

4.65
#8A58DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8A58DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58DD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58DD#FFFFFF#000000##FFFFFF
##8A58DD1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E1
Deuteranopia (green-blind)
#1D73DA
Tritanopia (blue-blind)
#767592
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a58dd;
/* rgb */ color: rgb(138, 88, 221);
/* oklch */ color: oklch(58.1% 0.195 297.3);
Tailwind
colors: {
  custom: {
    50: '#b189e8',
    500: '#8a58dd',
    950: '#000000',
  },
}
SCSS
$custom: #8a58dd;
$custom-light: #b189e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58dd",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 262.556,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58116,
    "c": 0.19464,
    "h": 297.3
  },
  "luminance": 0.17603
}

Semantic roles & 50–950 ramp

primary
#8A58DD
secondary
#CFE2AF
accent
#CE1789
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A58DD

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

Preview Lab → · Contrast checker → · Palette generator →

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