#8A5DCB#8A5DCB

#8A5DCB is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.7% C 0.166 H 300.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5DCB
RGBrgb(138, 93, 203)
HSLhsl(265, 51%, 58%)
HSVhsv(265, 54%, 80%)
CMYKcmyk(32%, 54.2%, 0%, 20.4%)
CIE-LABlab(48.94, 41.19, -50.67)
CIE-LCHlch(48.94, 65.30, 309.11°)
OKLaboklab(57.7% 0.0831 -0.1432)
OKLCHoklch(57.7% 0.166 300.1)
XYZxyz(25.1725, 17.5436, 58.5484)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DCB #9ECB5D
analogous
#5D67CB #8A5DCB #C15DCB
triadic
#8A5DCB #CB8A5D #5DCB8A
tetradic
#8A5DCB #CB5D67 #9ECB5D #5DCBC1
square
#8A5DCB #CB5D67 #9ECB5D #5DCBC1
split-complementary
#8A5DCB #CBC15D #67CB5D
monochromatic
#4F2A83 #6A39B2 #8A5DCB #AB8BDA #CDBAE9

Accessibility & contrast

On white

4.66
#8A5DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A5DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DCB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DCB#FFFFFF#000000##FFFFFF
##8A5DCB1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3274CF
Deuteranopia (green-blind)
#4074C8
Tritanopia (blue-blind)
#7D738B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5dcb;
/* rgb */ color: rgb(138, 93, 203);
/* oklch */ color: oklch(57.7% 0.166 300.1);
Tailwind
colors: {
  custom: {
    50: '#af8cdb',
    500: '#8a5dcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dcb;
$custom-light: #af8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dcb",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 264.545,
    "s": 51.402,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57704,
    "c": 0.16555,
    "h": 300.1
  },
  "luminance": 0.17544
}

Semantic roles & 50–950 ramp

primary
#8A5DCB
secondary
#C6D8AC
accent
#DB4DA1
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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