#8A6BDF#8A6BDF

#8A6BDF is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.3% C 0.170 H 293.0°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A6BDF
RGBrgb(138, 107, 223)
HSLhsl(256, 64%, 65%)
HSVhsv(256, 52%, 87%)
CMYKcmyk(38.1%, 52%, 0%, 12.5%)
CIE-LABlab(53.22, 38.47, -55.20)
CIE-LCHlch(53.22, 67.28, 304.87°)
OKLaboklab(61.25% 0.0665 -0.1564)
OKLCHoklch(61.25% 0.17 293)
XYZxyz(29.0547, 21.2457, 72.3678)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BDF #C0DF6B
analogous
#6B86DF #8A6BDF #C46BDF
triadic
#8A6BDF #DF8A6B #6BDF8A
tetradic
#8A6BDF #DF6B86 #C0DF6B #6BDFC4
square
#8A6BDF #DF6B86 #C0DF6B #6BDFC4
split-complementary
#8A6BDF #DFC46B #86DF6B
monochromatic
#4925AB #6239D4 #8A6BDF #B29DEA #DAD0F5

Accessibility & contrast

On white

4.00
#8A6BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A6BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BDF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BDF#FFFFFF#000000##000000
##8A6BDF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A81E3
Deuteranopia (green-blind)
#407DDC
Tritanopia (blue-blind)
#74839B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6bdf;
/* rgb */ color: rgb(138, 107, 223);
/* oklch */ color: oklch(61.3% 0.170 293.0);
Tailwind
colors: {
  custom: {
    50: '#b096ea',
    500: '#8a6bdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bdf;
$custom-light: #b096ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bdf",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 223
  },
  "hsl": {
    "h": 256.034,
    "s": 64.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61254,
    "c": 0.16997,
    "h": 293
  },
  "luminance": 0.21246
}

Semantic roles & 50–950 ramp

primary
#8A6BDF
secondary
#DCE7BF
accent
#CC199C
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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