#8A5BDA#8A5BDA

#8A5BDA is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.4% C 0.187 H 297.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5BDA
RGBrgb(138, 91, 218)
HSLhsl(262, 63%, 61%)
HSVhsv(262, 58%, 85%)
CMYKcmyk(36.7%, 58.3%, 0%, 14.5%)
CIE-LABlab(49.43, 46.14, -58.45)
CIE-LCHlch(49.43, 74.46, 308.29°)
OKLaboklab(58.36% 0.0858 -0.166)
OKLCHoklch(58.36% 0.187 297.3)
XYZxyz(26.8740, 17.9470, 68.3643)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BDA #ABDA5B
analogous
#5B6BDA #8A5BDA #CA5BDA
triadic
#8A5BDA #DA8A5B #5BDA8A
tetradic
#8A5BDA #DA5B6B #ABDA5B #5BDACA
square
#8A5BDA #DA5B6B #ABDA5B #5BDACA
split-complementary
#8A5BDA #DACA5B #6BDA5B
monochromatic
#4E2298 #682ECA #8A5BDA #AE8DE5 #D1BFF1

Accessibility & contrast

On white

4.58
#8A5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#8A5BDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BDA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BDA#FFFFFF#000000##000000
##8A5BDA1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1076DE
Deuteranopia (green-blind)
#2A74D7
Tritanopia (blue-blind)
#777692
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5bda;
/* rgb */ color: rgb(138, 91, 218);
/* oklch */ color: oklch(58.4% 0.187 297.3);
Tailwind
colors: {
  custom: {
    50: '#b18be6',
    500: '#8a5bda',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bda;
$custom-light: #b18be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bda",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 262.205,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58362,
    "c": 0.18685,
    "h": 297.3
  },
  "luminance": 0.17947
}

Semantic roles & 50–950 ramp

primary
#8A5BDA
secondary
#CFE1B0
accent
#CB1B8A
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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