#8A5EBB#8A5EBB

#8A5EBB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.9% C 0.144 H 304.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A5EBB
RGBrgb(138, 94, 187)
HSLhsl(268, 41%, 55%)
HSVhsv(268, 50%, 73%)
CMYKcmyk(26.2%, 49.7%, 0%, 26.7%)
CIE-LABlab(48.26, 36.64, -42.53)
CIE-LCHlch(48.26, 56.14, 310.74°)
OKLaboklab(56.91% 0.0806 -0.1193)
OKLCHoklch(56.91% 0.144 304)
XYZxyz(23.4516, 16.9966, 49.0493)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EBB #8FBB5E
analogous
#5E61BB #8A5EBB #B85EBB
triadic
#8A5EBB #BB8A5E #5EBB8A
tetradic
#8A5EBB #BB5E61 #8FBB5E #5EBBB8
square
#8A5EBB #BB5E61 #8FBB5E #5EBBB8
split-complementary
#8A5EBB #BBB85E #61BB5E
monochromatic
#4E2F70 #6C419B #8A5EBB #A989CD #C9B4DF

Accessibility & contrast

On white

4.77
#8A5EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A5EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EBB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EBB#FFFFFF#000000##FFFFFF
##8A5EBB1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4271BE
Deuteranopia (green-blind)
#4E73B9
Tritanopia (blue-blind)
#826F84
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5ebb;
/* rgb */ color: rgb(138, 94, 187);
/* oklch */ color: oklch(56.9% 0.144 304.0);
Tailwind
colors: {
  custom: {
    50: '#ae8dd0',
    500: '#8a5ebb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ebb;
$custom-light: #ae8dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ebb",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 187
  },
  "hsl": {
    "h": 268.387,
    "s": 40.611,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56906,
    "c": 0.14403,
    "h": 304
  },
  "luminance": 0.16997
}

Semantic roles & 50–950 ramp

primary
#8A5EBB
secondary
#BBCEA7
accent
#D05797
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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