#8A6FC7#8A6FC7

#8A6FC7 is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.5% C 0.132 H 296.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A6FC7
RGBrgb(138, 111, 199)
HSLhsl(258, 44%, 61%)
HSVhsv(258, 44%, 78%)
CMYKcmyk(30.7%, 44.2%, 0%, 22%)
CIE-LABlab(52.83, 29.83, -42.19)
CIE-LCHlch(52.83, 51.67, 305.26°)
OKLaboklab(60.54% 0.0587 -0.1184)
OKLCHoklch(60.54% 0.132 296.4)
XYZxyz(26.4720, 20.8953, 56.6603)
Luminance0.2090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FC7 #ACC76F
analogous
#6F80C7 #8A6FC7 #B66FC7
triadic
#8A6FC7 #C78A6F #6FC78A
tetradic
#8A6FC7 #C76F80 #ACC76F #6FC7B6
square
#8A6FC7 #C76F80 #ACC76F #6FC7B6
split-complementary
#8A6FC7 #C7B66F #80C76F
monochromatic
#4E3587 #6746B3 #8A6FC7 #AE9BD8 #D2C7E9

Accessibility & contrast

On white

4.05
#8A6FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8A6FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FC7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FC7#FFFFFF#000000##000000
##8A6FC71.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#547FCA
Deuteranopia (green-blind)
#597DC5
Tritanopia (blue-blind)
#7D7F91
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6fc7;
/* rgb */ color: rgb(138, 111, 199);
/* oklch */ color: oklch(60.5% 0.132 296.4);
Tailwind
colors: {
  custom: {
    50: '#ae98d8',
    500: '#8a6fc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fc7;
$custom-light: #ae98d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fc7",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 199
  },
  "hsl": {
    "h": 258.409,
    "s": 44,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60541,
    "c": 0.13213,
    "h": 296.4
  },
  "luminance": 0.20896
}

Semantic roles & 50–950 ramp

primary
#8A6FC7
secondary
#CFDAB8
accent
#B72E8D
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A6FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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