#8A5EBF#8A5EBF

#8A5EBF is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.1% C 0.149 H 302.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A5EBF
RGBrgb(138, 94, 191)
HSLhsl(267, 43%, 56%)
HSVhsv(267, 51%, 75%)
CMYKcmyk(27.7%, 50.8%, 0%, 25.1%)
CIE-LABlab(48.47, 37.62, -44.50)
CIE-LCHlch(48.47, 58.27, 310.21°)
OKLaboklab(57.14% 0.081 -0.1251)
OKLCHoklch(57.14% 0.149 302.9)
XYZxyz(23.8858, 17.1703, 51.3359)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EBF #93BF5E
analogous
#5E62BF #8A5EBF #BA5EBF
triadic
#8A5EBF #BF8A5E #5EBF8A
tetradic
#8A5EBF #BF5E62 #93BF5E #5EBFBA
square
#8A5EBF #BF5E62 #93BF5E #5EBFBA
split-complementary
#8A5EBF #BFBA5E #62BF5E
monochromatic
#4E2E74 #6B40A0 #8A5EBF #AA8AD0 #CAB6E2

Accessibility & contrast

On white

4.74
#8A5EBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8A5EBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EBF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EBF#FFFFFF#000000##FFFFFF
##8A5EBF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F72C2
Deuteranopia (green-blind)
#4B73BD
Tritanopia (blue-blind)
#807086
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5ebf;
/* rgb */ color: rgb(138, 94, 191);
/* oklch */ color: oklch(57.1% 0.149 302.9);
Tailwind
colors: {
  custom: {
    50: '#af8dd3',
    500: '#8a5ebf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ebf;
$custom-light: #af8dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ebf",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 191
  },
  "hsl": {
    "h": 267.216,
    "s": 43.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57139,
    "c": 0.14904,
    "h": 302.9
  },
  "luminance": 0.1717
}

Semantic roles & 50–950 ramp

primary
#8A5EBF
secondary
#BED0A8
accent
#D3559A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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