#8A6FC4#8A6FC4

#8A6FC4 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.4% C 0.128 H 297.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A6FC4
RGBrgb(138, 111, 196)
HSLhsl(259, 42%, 60%)
HSVhsv(259, 43%, 77%)
CMYKcmyk(29.6%, 43.4%, 0%, 23.1%)
CIE-LABlab(52.68, 29.06, -40.71)
CIE-LCHlch(52.68, 50.02, 305.52°)
OKLaboklab(60.38% 0.0582 -0.1141)
OKLCHoklch(60.38% 0.128 297)
XYZxyz(26.1271, 20.7574, 54.8439)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FC4 #A9C46F
analogous
#6F7EC4 #8A6FC4 #B56FC4
triadic
#8A6FC4 #C48A6F #6FC48A
tetradic
#8A6FC4 #C46F7E #A9C46F #6FC4B5
square
#8A6FC4 #C46F7E #A9C46F #6FC4B5
split-complementary
#8A6FC4 #C4B56F #7EC46F
monochromatic
#4E3683 #6847AE #8A6FC4 #AD9AD6 #D1C6E8

Accessibility & contrast

On white

4.08
#8A6FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A6FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FC4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FC4#FFFFFF#000000##000000
##8A6FC41.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#567EC7
Deuteranopia (green-blind)
#5B7DC2
Tritanopia (blue-blind)
#7E7E90
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6fc4;
/* rgb */ color: rgb(138, 111, 196);
/* oklch */ color: oklch(60.4% 0.128 297.0);
Tailwind
colors: {
  custom: {
    50: '#ae98d6',
    500: '#8a6fc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fc4;
$custom-light: #ae98d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fc4",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 196
  },
  "hsl": {
    "h": 259.059,
    "s": 41.872,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60377,
    "c": 0.12809,
    "h": 297
  },
  "luminance": 0.20758
}

Semantic roles & 50–950 ramp

primary
#8A6FC4
secondary
#CDD8B7
accent
#B5318B
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A6FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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