#8A5EBD#8A5EBD

#8A5EBD is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.0% C 0.147 H 303.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A5EBD
RGBrgb(138, 94, 189)
HSLhsl(268, 42%, 55%)
HSVhsv(268, 50%, 74%)
CMYKcmyk(27%, 50.3%, 0%, 25.9%)
CIE-LABlab(48.36, 37.13, -43.52)
CIE-LCHlch(48.36, 57.20, 310.47°)
OKLaboklab(57.02% 0.0808 -0.1222)
OKLCHoklch(57.02% 0.147 303.5)
XYZxyz(23.6672, 17.0828, 50.1847)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EBD #91BD5E
analogous
#5E62BD #8A5EBD #B95EBD
triadic
#8A5EBD #BD8A5E #5EBD8A
tetradic
#8A5EBD #BD5E62 #91BD5E #5EBDB9
square
#8A5EBD #BD5E62 #91BD5E #5EBDB9
split-complementary
#8A5EBD #BDB95E #62BD5E
monochromatic
#4E2F72 #6B409D #8A5EBD #AA89CF #C9B5E1

Accessibility & contrast

On white

4.75
#8A5EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A5EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EBD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EBD#FFFFFF#000000##FFFFFF
##8A5EBD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4172C0
Deuteranopia (green-blind)
#4D73BB
Tritanopia (blue-blind)
#816F85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5ebd;
/* rgb */ color: rgb(138, 94, 189);
/* oklch */ color: oklch(57.0% 0.147 303.5);
Tailwind
colors: {
  custom: {
    50: '#af8dd1',
    500: '#8a5ebd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ebd;
$custom-light: #af8dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ebd",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 189
  },
  "hsl": {
    "h": 267.789,
    "s": 41.85,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57022,
    "c": 0.14653,
    "h": 303.5
  },
  "luminance": 0.17083
}

Semantic roles & 50–950 ramp

primary
#8A5EBD
secondary
#BDCFA8
accent
#D25698
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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