#8A5EDC#8A5EDC

#8A5EDC is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.0% C 0.185 H 296.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A5EDC
RGBrgb(138, 94, 220)
HSLhsl(261, 64%, 62%)
HSVhsv(261, 57%, 86%)
CMYKcmyk(37.3%, 57.3%, 0%, 13.7%)
CIE-LABlab(50.19, 45.01, -58.37)
CIE-LCHlch(50.19, 73.70, 307.64°)
OKLaboklab(58.96% 0.0822 -0.1657)
OKLCHoklch(58.96% 0.185 296.4)
XYZxyz(27.3989, 18.5755, 69.8382)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EDC #B0DC5E
analogous
#5E71DC #8A5EDC #C95EDC
triadic
#8A5EDC #DC8A5E #5EDC8A
tetradic
#8A5EDC #DC5E71 #B0DC5E #5EDCC9
square
#8A5EDC #DC5E71 #B0DC5E #5EDCC9
split-complementary
#8A5EDC #DCC95E #71DC5E
monochromatic
#4D229D #662DD0 #8A5EDC #AF90E7 #D3C3F2

Accessibility & contrast

On white

4.45
#8A5EDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#8A5EDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EDC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EDC#FFFFFF#000000##000000
##8A5EDC1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1978E0
Deuteranopia (green-blind)
#2D76D9
Tritanopia (blue-blind)
#767994
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5edc;
/* rgb */ color: rgb(138, 94, 220);
/* oklch */ color: oklch(59.0% 0.185 296.4);
Tailwind
colors: {
  custom: {
    50: '#b18de8',
    500: '#8a5edc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5edc;
$custom-light: #b18de8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5edc",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 220
  },
  "hsl": {
    "h": 260.952,
    "s": 64.286,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58956,
    "c": 0.18501,
    "h": 296.4
  },
  "luminance": 0.18576
}

Semantic roles & 50–950 ramp

primary
#8A5EDC
secondary
#D2E2B3
accent
#CC198E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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