#8A5ECF#8A5ECF

#8A5ECF is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.1% C 0.169 H 299.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#8A5ECF
RGBrgb(138, 94, 207)
HSLhsl(263, 54%, 59%)
HSVhsv(263, 55%, 81%)
CMYKcmyk(33.3%, 54.6%, 0%, 18.8%)
CIE-LABlab(49.39, 41.65, -52.24)
CIE-LCHlch(49.39, 66.81, 308.56°)
OKLaboklab(58.12% 0.082 -0.1478)
OKLCHoklch(58.12% 0.169 299)
XYZxyz(25.7437, 17.9134, 61.1207)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ECF #A3CF5E
analogous
#5E6BCF #8A5ECF #C35ECF
triadic
#8A5ECF #CF8A5E #5ECF8A
tetradic
#8A5ECF #CF5E6B #A3CF5E #5ECFC3
square
#8A5ECF #CF5E6B #A3CF5E #5ECFC3
split-complementary
#8A5ECF #CFC35E #6BCF5E
monochromatic
#4F298A #6A37B9 #8A5ECF #AC8DDD #CFBCEB

Accessibility & contrast

On white

4.58
#8A5ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8A5ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5ECF
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ECF#FFFFFF#000000##000000
##8A5ECF1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F75D3
Deuteranopia (green-blind)
#3E74CC
Tritanopia (blue-blind)
#7B758D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5ecf;
/* rgb */ color: rgb(138, 94, 207);
/* oklch */ color: oklch(58.1% 0.169 299.0);
Tailwind
colors: {
  custom: {
    50: '#b08dde',
    500: '#8a5ecf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ecf;
$custom-light: #b08dde;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ecf",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 263.363,
    "s": 54.067,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58115,
    "c": 0.169,
    "h": 299
  },
  "luminance": 0.17914
}

Semantic roles & 50–950 ramp

primary
#8A5ECF
secondary
#C9DBAE
accent
#DD4AA4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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