#8A5BCE#8A5BCE

#8A5BCE is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.172 H 299.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5BCE
RGBrgb(138, 91, 206)
HSLhsl(265, 54%, 58%)
HSVhsv(265, 56%, 81%)
CMYKcmyk(33%, 55.8%, 0%, 19.2%)
CIE-LABlab(48.69, 43.07, -52.79)
CIE-LCHlch(48.69, 68.13, 309.20°)
OKLaboklab(57.58% 0.0858 -0.1494)
OKLCHoklch(57.58% 0.172 299.9)
XYZxyz(25.3602, 17.3415, 60.3917)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BCE #9FCE5B
analogous
#5B65CE #8A5BCE #C45BCE
triadic
#8A5BCE #CE8A5B #5BCE8A
tetradic
#8A5BCE #CE5B65 #9FCE5B #5BCEC4
square
#8A5BCE #CE5B65 #9FCE5B #5BCEC4
split-complementary
#8A5BCE #CEC45B #65CE5B
monochromatic
#4F2886 #6A36B6 #8A5BCE #AC8ADC #CDB9EA

Accessibility & contrast

On white

4.70
#8A5BCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A5BCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BCE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BCE#FFFFFF#000000##FFFFFF
##8A5BCE1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2973D2
Deuteranopia (green-blind)
#3A73CB
Tritanopia (blue-blind)
#7C728C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5bce;
/* rgb */ color: rgb(138, 91, 206);
/* oklch */ color: oklch(57.6% 0.172 299.9);
Tailwind
colors: {
  custom: {
    50: '#b08bde',
    500: '#8a5bce',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bce;
$custom-light: #b08bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bce",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 206
  },
  "hsl": {
    "h": 264.522,
    "s": 53.991,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57577,
    "c": 0.17226,
    "h": 299.9
  },
  "luminance": 0.17342
}

Semantic roles & 50–950 ramp

primary
#8A5BCE
secondary
#C7D9AB
accent
#DD4AA1
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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