#8A5CCB#8A5CCB

#8A5CCB is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.5% C 0.167 H 300.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8A5CCB
RGBrgb(138, 92, 203)
HSLhsl(265, 52%, 58%)
HSVhsv(265, 55%, 80%)
CMYKcmyk(32%, 54.7%, 0%, 20.4%)
CIE-LABlab(48.72, 41.75, -51.02)
CIE-LCHlch(48.72, 65.92, 309.29°)
OKLaboklab(57.54% 0.0844 -0.1442)
OKLCHoklch(57.54% 0.167 300.3)
XYZxyz(25.0853, 17.3692, 58.5193)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CCB #9DCB5C
analogous
#5C65CB #8A5CCB #C25CCB
triadic
#8A5CCB #CB8A5C #5CCB8A
tetradic
#8A5CCB #CB5C65 #9DCB5C #5CCBC2
square
#8A5CCB #CB5C65 #9DCB5C #5CCBC2
split-complementary
#8A5CCB #CBC25C #65CB5C
monochromatic
#4F2A83 #6B39B1 #8A5CCB #AB8ADA #CDB9E9

Accessibility & contrast

On white

4.69
#8A5CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A5CCB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CCB#FFFFFF#000000##FFFFFF
##8A5CCB1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3073CF
Deuteranopia (green-blind)
#3F73C8
Tritanopia (blue-blind)
#7D728B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ccb;
/* rgb */ color: rgb(138, 92, 203);
/* oklch */ color: oklch(57.5% 0.167 300.3);
Tailwind
colors: {
  custom: {
    50: '#b08cdb',
    500: '#8a5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ccb;
$custom-light: #b08cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ccb",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 264.865,
    "s": 51.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57544,
    "c": 0.16708,
    "h": 300.3
  },
  "luminance": 0.17369
}

Semantic roles & 50–950 ramp

primary
#8A5CCB
secondary
#C5D8AB
accent
#DB4DA0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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