#8A5BC8#8A5BC8

#8A5BC8 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.2% C 0.165 H 301.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A5BC8
RGBrgb(138, 91, 200)
HSLhsl(266, 50%, 57%)
HSVhsv(266, 55%, 78%)
CMYKcmyk(31%, 54.5%, 0%, 21.6%)
CIE-LABlab(48.33, 41.55, -49.92)
CIE-LCHlch(48.33, 64.95, 309.77°)
OKLaboklab(57.2% 0.0856 -0.141)
OKLCHoklch(57.2% 0.165 301.3)
XYZxyz(24.6452, 17.0555, 56.6260)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC8 #99C85B
analogous
#5B62C8 #8A5BC8 #C15BC8
triadic
#8A5BC8 #C88A5B #5BC88A
tetradic
#8A5BC8 #C85B62 #99C85B #5BC8C1
square
#8A5BC8 #C85B62 #99C85B #5BC8C1
split-complementary
#8A5BC8 #C8C15B #62C85B
monochromatic
#4F2A7E #6B3AAC #8A5BC8 #AB89D7 #CBB7E7

Accessibility & contrast

On white

4.76
#8A5BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A5BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BC8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BC8#FFFFFF#000000##FFFFFF
##8A5BC81.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3172CC
Deuteranopia (green-blind)
#4072C5
Tritanopia (blue-blind)
#7E7089
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5bc8;
/* rgb */ color: rgb(138, 91, 200);
/* oklch */ color: oklch(57.2% 0.165 301.3);
Tailwind
colors: {
  custom: {
    50: '#af8bd9',
    500: '#8a5bc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc8;
$custom-light: #af8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc8",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 200
  },
  "hsl": {
    "h": 265.872,
    "s": 49.772,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57198,
    "c": 0.16491,
    "h": 301.3
  },
  "luminance": 0.17056
}

Semantic roles & 50–950 ramp

primary
#8A5BC8
secondary
#C2D6A9
accent
#D94F9D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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