#8A5EBA#8A5EBA

#8A5EBA is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.8% C 0.143 H 304.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5EBA
RGBrgb(138, 94, 186)
HSLhsl(269, 40%, 55%)
HSVhsv(269, 49%, 73%)
CMYKcmyk(25.8%, 49.5%, 0%, 27.1%)
CIE-LABlab(48.20, 36.40, -42.04)
CIE-LCHlch(48.20, 55.60, 310.89°)
OKLaboklab(56.85% 0.0805 -0.1179)
OKLCHoklch(56.85% 0.143 304.3)
XYZxyz(23.3450, 16.9539, 48.4874)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EBA #8EBA5E
analogous
#5E60BA #8A5EBA #B85EBA
triadic
#8A5EBA #BA8A5E #5EBA8A
tetradic
#8A5EBA #BA5E60 #8EBA5E #5EBAB8
square
#8A5EBA #BA5E60 #8EBA5E #5EBAB8
split-complementary
#8A5EBA #BAB85E #60BA5E
monochromatic
#4D2F6E #6B4299 #8A5EBA #A989CC #C8B4DF

Accessibility & contrast

On white

4.78
#8A5EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8A5EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EBA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EBA#FFFFFF#000000##FFFFFF
##8A5EBA1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4371BD
Deuteranopia (green-blind)
#4F72B8
Tritanopia (blue-blind)
#826E83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5eba;
/* rgb */ color: rgb(138, 94, 186);
/* oklch */ color: oklch(56.8% 0.143 304.3);
Tailwind
colors: {
  custom: {
    50: '#ae8dcf',
    500: '#8a5eba',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eba;
$custom-light: #ae8dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eba",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 268.696,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56849,
    "c": 0.14277,
    "h": 304.3
  },
  "luminance": 0.16954
}

Semantic roles & 50–950 ramp

primary
#8A5EBA
secondary
#BBCDA7
accent
#D05897
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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