#8A5FCE#8A5FCE

#8A5FCE is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.2% C 0.166 H 299.0°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5FCE
RGBrgb(138, 95, 206)
HSLhsl(263, 53%, 59%)
HSVhsv(263, 54%, 81%)
CMYKcmyk(33%, 53.9%, 0%, 19.2%)
CIE-LABlab(49.55, 40.83, -51.41)
CIE-LCHlch(49.55, 65.66, 308.45°)
OKLaboklab(58.21% 0.0807 -0.1453)
OKLCHoklch(58.21% 0.166 299)
XYZxyz(25.7113, 18.0437, 60.5087)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FCE #A3CE5F
analogous
#5F6CCE #8A5FCE #C25FCE
triadic
#8A5FCE #CE8A5F #5FCE8A
tetradic
#8A5FCE #CE5F6C #A3CE5F #5FCEC2
square
#8A5FCE #CE5F6C #A3CE5F #5FCEC2
split-complementary
#8A5FCE #CEC25F #6CCE5F
monochromatic
#4F2A89 #6A38B8 #8A5FCE #AC8EDC #CFBDEB

Accessibility & contrast

On white

4.56
#8A5FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#8A5FCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FCE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FCE#FFFFFF#000000##000000
##8A5FCE1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3376D2
Deuteranopia (green-blind)
#4075CB
Tritanopia (blue-blind)
#7C758D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5fce;
/* rgb */ color: rgb(138, 95, 206);
/* oklch */ color: oklch(58.2% 0.166 299.0);
Tailwind
colors: {
  custom: {
    50: '#b08edd',
    500: '#8a5fce',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fce;
$custom-light: #b08edd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fce",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 206
  },
  "hsl": {
    "h": 263.243,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58212,
    "c": 0.16624,
    "h": 299
  },
  "luminance": 0.18044
}

Semantic roles & 50–950 ramp

primary
#8A5FCE
secondary
#C9DAAF
accent
#DD4BA4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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