#8A6FC2#8A6FC2

#8A6FC2 is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.3% C 0.125 H 297.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A6FC2
RGBrgb(138, 111, 194)
HSLhsl(260, 40%, 60%)
HSVhsv(260, 43%, 76%)
CMYKcmyk(28.9%, 42.8%, 0%, 23.9%)
CIE-LABlab(52.58, 28.55, -39.72)
CIE-LCHlch(52.58, 48.92, 305.70°)
OKLaboklab(60.27% 0.0579 -0.1112)
OKLCHoklch(60.27% 0.125 297.5)
XYZxyz(25.9010, 20.6669, 53.6530)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FC2 #A7C26F
analogous
#6F7EC2 #8A6FC2 #B46FC2
triadic
#8A6FC2 #C28A6F #6FC28A
tetradic
#8A6FC2 #C26F7E #A7C26F #6FC2B4
square
#8A6FC2 #C26F7E #A7C26F #6FC2B4
split-complementary
#8A6FC2 #C2B46F #7EC26F
monochromatic
#4E3680 #6949AB #8A6FC2 #AD9AD4 #D0C5E6

Accessibility & contrast

On white

4.09
#8A6FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#8A6FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FC2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FC2#FFFFFF#000000##000000
##8A6FC21.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#577EC5
Deuteranopia (green-blind)
#5C7DC0
Tritanopia (blue-blind)
#7F7E8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6fc2;
/* rgb */ color: rgb(138, 111, 194);
/* oklch */ color: oklch(60.3% 0.125 297.5);
Tailwind
colors: {
  custom: {
    50: '#ae98d5',
    500: '#8a6fc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fc2;
$custom-light: #ae98d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fc2",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 194
  },
  "hsl": {
    "h": 259.518,
    "s": 40.488,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60269,
    "c": 0.12538,
    "h": 297.5
  },
  "luminance": 0.20667
}

Semantic roles & 50–950 ramp

primary
#8A6FC2
secondary
#CCD6B6
accent
#D057A9
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A6FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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