#8A5AE2#8A5AE2

#8A5AE2 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.8% C 0.198 H 296.0°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE2
RGBrgb(138, 90, 226)
HSLhsl(261, 70%, 62%)
HSVhsv(261, 60%, 89%)
CMYKcmyk(38.9%, 60.2%, 0%, 11.4%)
CIE-LABlab(49.75, 48.76, -62.47)
CIE-LCHlch(49.75, 79.25, 307.97°)
OKLaboklab(58.76% 0.0867 -0.1778)
OKLCHoklch(58.76% 0.198 296)
XYZxyz(27.8613, 18.2061, 73.9830)
Luminance0.1821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE2 #B2E25A
analogous
#5A6EE2 #8A5AE2 #CE5AE2
triadic
#8A5AE2 #E28A5A #5AE28A
tetradic
#8A5AE2 #E25A6E #B2E25A #5AE2CE
square
#8A5AE2 #E25A6E #B2E25A #5AE2CE
split-complementary
#8A5AE2 #E2CE5A #6EE25A
monochromatic
#4D1DA5 #6526D9 #8A5AE2 #AF8EEB #D4C2F4

Accessibility & contrast

On white

4.52
#8A5AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#8A5AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE2#FFFFFF#000000##000000
##8A5AE21.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#1674DF
Tritanopia (blue-blind)
#747896
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ae2;
/* rgb */ color: rgb(138, 90, 226);
/* oklch */ color: oklch(58.8% 0.198 296.0);
Tailwind
colors: {
  custom: {
    50: '#b28bec',
    500: '#8a5ae2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae2;
$custom-light: #b28bec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae2",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 226
  },
  "hsl": {
    "h": 261.176,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58756,
    "c": 0.19784,
    "h": 296
  },
  "luminance": 0.18207
}

Semantic roles & 50–950 ramp

primary
#8A5AE2
secondary
#D3E5B3
accent
#D2138F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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