#8A58CB#8A58CB

#8A58CB is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.9% C 0.173 H 301.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A58CB
RGBrgb(138, 88, 203)
HSLhsl(266, 53%, 57%)
HSVhsv(266, 57%, 80%)
CMYKcmyk(32%, 56.7%, 0%, 20.4%)
CIE-LABlab(47.87, 43.97, -52.38)
CIE-LCHlch(47.87, 68.39, 310.01°)
OKLaboklab(56.92% 0.0895 -0.1482)
OKLCHoklch(56.92% 0.173 301.1)
XYZxyz(24.7479, 16.6944, 58.4069)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58CB #99CB58
analogous
#5860CB #8A58CB #C358CB
triadic
#8A58CB #CB8A58 #58CB8A
tetradic
#8A58CB #CB5860 #99CB58 #58CBC3
square
#8A58CB #CB5860 #99CB58 #58CBC3
split-complementary
#8A58CB #CBC358 #60CB58
monochromatic
#4F2881 #6B37AF #8A58CB #AB87DA #CBB5E8

Accessibility & contrast

On white

4.84
#8A58CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8A58CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58CB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58CB#FFFFFF#000000##FFFFFF
##8A58CB1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#7D6F89
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a58cb;
/* rgb */ color: rgb(138, 88, 203);
/* oklch */ color: oklch(56.9% 0.173 301.1);
Tailwind
colors: {
  custom: {
    50: '#b089db',
    500: '#8a58cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a58cb;
$custom-light: #b089db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58cb",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 266.087,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56919,
    "c": 0.17309,
    "h": 301.1
  },
  "luminance": 0.16695
}

Semantic roles & 50–950 ramp

primary
#8A58CB
secondary
#C2D7A8
accent
#DC4C9D
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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