#8A5ED4#8A5ED4

#8A5ED4 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.4% C 0.175 H 298.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A5ED4
RGBrgb(138, 94, 212)
HSLhsl(262, 58%, 60%)
HSVhsv(262, 56%, 83%)
CMYKcmyk(34.9%, 55.7%, 0%, 16.9%)
CIE-LABlab(49.69, 42.93, -54.61)
CIE-LCHlch(49.69, 69.47, 308.17°)
OKLaboklab(58.43% 0.0822 -0.1547)
OKLCHoklch(58.43% 0.175 298)
XYZxyz(26.3647, 18.1618, 64.3911)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ED4 #A8D45E
analogous
#5E6DD4 #8A5ED4 #C55ED4
triadic
#8A5ED4 #D48A5E #5ED48A
tetradic
#8A5ED4 #D45E6D #A8D45E #5ED4C5
square
#8A5ED4 #D45E6D #A8D45E #5ED4C5
split-complementary
#8A5ED4 #D4C55E #6DD45E
monochromatic
#4E2791 #6834C1 #8A5ED4 #AD8EE1 #D0BFEE

Accessibility & contrast

On white

4.53
#8A5ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8A5ED4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5ED4
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ED4#FFFFFF#000000##000000
##8A5ED41.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2876D8
Deuteranopia (green-blind)
#3875D1
Tritanopia (blue-blind)
#797690
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ed4;
/* rgb */ color: rgb(138, 94, 212);
/* oklch */ color: oklch(58.4% 0.175 298.0);
Tailwind
colors: {
  custom: {
    50: '#b08de2',
    500: '#8a5ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ed4;
$custom-light: #b08de2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ed4",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 262.373,
    "s": 57.843,
    "l": 60
  },
  "oklch": {
    "l": 0.58433,
    "c": 0.17518,
    "h": 298
  },
  "luminance": 0.18162
}

Semantic roles & 50–950 ramp

primary
#8A5ED4
secondary
#CDDEB0
accent
#E147A8
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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