#8A6FCA#8A6FCA

#8A6FCA is a mid, vivid violet. Relative luminance 0.210; OKLCH L 60.7% C 0.136 H 295.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A6FCA
RGBrgb(138, 111, 202)
HSLhsl(258, 46%, 61%)
HSVhsv(258, 45%, 79%)
CMYKcmyk(31.7%, 45%, 0%, 20.8%)
CIE-LABlab(52.99, 30.60, -43.66)
CIE-LCHlch(52.99, 53.31, 305.03°)
OKLaboklab(60.71% 0.0592 -0.1226)
OKLCHoklch(60.71% 0.136 295.8)
XYZxyz(26.8237, 21.0360, 58.5128)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FCA #AFCA6F
analogous
#6F82CA #8A6FCA #B86FCA
triadic
#8A6FCA #CA8A6F #6FCA8A
tetradic
#8A6FCA #CA6F82 #AFCA6F #6FCAB8
square
#8A6FCA #CA6F82 #AFCA6F #6FCAB8
split-complementary
#8A6FCA #CAB86F #82CA6F
monochromatic
#4D338B #6644B8 #8A6FCA #AE9CDA #D3C8EB

Accessibility & contrast

On white

4.03
#8A6FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A6FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FCA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FCA#FFFFFF#000000##000000
##8A6FCA1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#527FCD
Deuteranopia (green-blind)
#577DC8
Tritanopia (blue-blind)
#7C8093
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6fca;
/* rgb */ color: rgb(138, 111, 202);
/* oklch */ color: oklch(60.7% 0.136 295.8);
Tailwind
colors: {
  custom: {
    50: '#af98da',
    500: '#8a6fca',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fca;
$custom-light: #af98da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fca",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 202
  },
  "hsl": {
    "h": 257.802,
    "s": 46.193,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60708,
    "c": 0.13617,
    "h": 295.8
  },
  "luminance": 0.21036
}

Semantic roles & 50–950 ramp

primary
#8A6FCA
secondary
#D1DBB9
accent
#B92C8F
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A6FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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