#8A58E2#8A58E2

#8A58E2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.5% C 0.201 H 296.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A58E2
RGBrgb(138, 88, 226)
HSLhsl(262, 70%, 62%)
HSVhsv(262, 61%, 89%)
CMYKcmyk(38.9%, 61.1%, 0%, 11.4%)
CIE-LABlab(49.34, 49.83, -63.13)
CIE-LCHlch(49.34, 80.42, 308.29°)
OKLaboklab(58.46% 0.089 -0.1797)
OKLCHoklch(58.46% 0.201 296.3)
XYZxyz(27.6949, 17.8732, 73.9275)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A58E2 #B0E258
analogous
#586BE2 #8A58E2 #CF58E2
triadic
#8A58E2 #E28A58 #58E28A
tetradic
#8A58E2 #E2586B #B0E258 #58E2CF
square
#8A58E2 #E2586B #B0E258 #58E2CF
split-complementary
#8A58E2 #E2CF58 #6BE258
monochromatic
#4D1CA3 #6625D7 #8A58E2 #AF8CEB #D3C0F4

Accessibility & contrast

On white

4.59
#8A58E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8A58E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A58E2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A58E2#FFFFFF#000000##FFFFFF
##8A58E21.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#0D73DF
Tritanopia (blue-blind)
#747795
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a58e2;
/* rgb */ color: rgb(138, 88, 226);
/* oklch */ color: oklch(58.5% 0.201 296.3);
Tailwind
colors: {
  custom: {
    50: '#b289ec',
    500: '#8a58e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a58e2;
$custom-light: #b289ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a58e2",
  "rgb": {
    "r": 138,
    "g": 88,
    "b": 226
  },
  "hsl": {
    "h": 261.739,
    "s": 70.408,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58463,
    "c": 0.20055,
    "h": 296.3
  },
  "luminance": 0.17874
}

Semantic roles & 50–950 ramp

primary
#8A58E2
secondary
#D2E5B1
accent
#D2138D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A58E2

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

Preview Lab → · Contrast checker → · Palette generator →

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