#8A6EC2#8A6EC2

#8A6EC2 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.1% C 0.127 H 297.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A6EC2
RGBrgb(138, 110, 194)
HSLhsl(260, 41%, 60%)
HSVhsv(260, 43%, 76%)
CMYKcmyk(28.9%, 43.3%, 0%, 23.9%)
CIE-LABlab(52.34, 29.13, -40.10)
CIE-LCHlch(52.34, 49.57, 305.99°)
OKLaboklab(60.09% 0.0593 -0.1123)
OKLCHoklch(60.09% 0.127 297.8)
XYZxyz(25.7925, 20.4499, 53.6169)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EC2 #A6C26E
analogous
#6E7CC2 #8A6EC2 #B46EC2
triadic
#8A6EC2 #C28A6E #6EC28A
tetradic
#8A6EC2 #C26E7C #A6C26E #6EC2B4
square
#8A6EC2 #C26E7C #A6C26E #6EC2B4
split-complementary
#8A6EC2 #C2B46E #7CC26E
monochromatic
#4E3680 #6948AB #8A6EC2 #AD99D4 #D0C4E6

Accessibility & contrast

On white

4.13
#8A6EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A6EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EC2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EC2#FFFFFF#000000##000000
##8A6EC21.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#567DC5
Deuteranopia (green-blind)
#5B7CC0
Tritanopia (blue-blind)
#7F7D8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6ec2;
/* rgb */ color: rgb(138, 110, 194);
/* oklch */ color: oklch(60.1% 0.127 297.8);
Tailwind
colors: {
  custom: {
    50: '#ae98d5',
    500: '#8a6ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ec2;
$custom-light: #ae98d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ec2",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 194
  },
  "hsl": {
    "h": 260,
    "s": 40.777,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60087,
    "c": 0.127,
    "h": 297.8
  },
  "luminance": 0.2045
}

Semantic roles & 50–950 ramp

primary
#8A6EC2
secondary
#CBD6B6
accent
#D157A8
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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