#8A58C7#8A58C7

#8A58C7 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.7% C 0.168 H 302.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A58C7
RGBrgb(138, 88, 199)
HSLhsl(267, 50%, 56%)
HSVhsv(267, 56%, 78%)
CMYKcmyk(30.7%, 55.8%, 0%, 22%)
CIE-LABlab(47.63, 42.97, -50.46)
CIE-LCHlch(47.63, 66.28, 310.41°)
OKLaboklab(56.67% 0.0894 -0.1425)
OKLCHoklch(56.67% 0.168 302.1)
XYZxyz(24.2774, 16.5062, 55.9288)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58C7 #95C758
analogous
#585EC7 #8A58C7 #C258C7
triadic
#8A58C7 #C78A58 #58C78A
tetradic
#8A58C7 #C7585E #95C758 #58C7C2
square
#8A58C7 #C7585E #95C758 #58C7C2
split-complementary
#8A58C7 #C7C258 #5EC758
monochromatic
#4E297B #6B39A9 #8A58C7 #AA86D6 #CAB4E6

Accessibility & contrast

On white

4.88
#8A58C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A58C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58C7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58C7#FFFFFF#000000##FFFFFF
##8A58C71.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B70CB
Deuteranopia (green-blind)
#3D71C4
Tritanopia (blue-blind)
#7E6E87
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a58c7;
/* rgb */ color: rgb(138, 88, 199);
/* oklch */ color: oklch(56.7% 0.168 302.1);
Tailwind
colors: {
  custom: {
    50: '#af89d8',
    500: '#8a58c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a58c7;
$custom-light: #af89d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58c7",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 199
  },
  "hsl": {
    "h": 267.027,
    "s": 49.776,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56665,
    "c": 0.16826,
    "h": 302.1
  },
  "luminance": 0.16506
}

Semantic roles & 50–950 ramp

primary
#8A58C7
secondary
#C0D4A7
accent
#D94F9B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A58C7

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

Preview Lab → · Contrast checker → · Palette generator →

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