#8A6BDB#8A6BDB

#8A6BDB is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.0% C 0.165 H 293.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A6BDB
RGBrgb(138, 107, 219)
HSLhsl(257, 61%, 64%)
HSVhsv(257, 51%, 86%)
CMYKcmyk(37%, 51.1%, 0%, 14.1%)
CIE-LABlab(52.98, 37.40, -53.31)
CIE-LCHlch(52.98, 65.12, 305.05°)
OKLaboklab(61.01% 0.0662 -0.1509)
OKLCHoklch(61.01% 0.165 293.7)
XYZxyz(28.5218, 21.0325, 69.5611)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BDB #BCDB6B
analogous
#6B84DB #8A6BDB #C26BDB
triadic
#8A6BDB #DB8A6B #6BDB8A
tetradic
#8A6BDB #DB6B84 #BCDB6B #6BDBC2
square
#8A6BDB #DB6B84 #BCDB6B #6BDBC2
split-complementary
#8A6BDB #DBC26B #84DB6B
monochromatic
#4A28A4 #633ACF #8A6BDB #B19CE7 #D8CDF3

Accessibility & contrast

On white

4.03
#8A6BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A6BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BDB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BDB#FFFFFF#000000##000000
##8A6BDB1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80DF
Deuteranopia (green-blind)
#447DD8
Tritanopia (blue-blind)
#768299
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6bdb;
/* rgb */ color: rgb(138, 107, 219);
/* oklch */ color: oklch(61.0% 0.165 293.7);
Tailwind
colors: {
  custom: {
    50: '#b096e7',
    500: '#8a6bdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bdb;
$custom-light: #b096e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bdb",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 219
  },
  "hsl": {
    "h": 256.607,
    "s": 60.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61006,
    "c": 0.16479,
    "h": 293.7
  },
  "luminance": 0.21033
}

Semantic roles & 50–950 ramp

primary
#8A6BDB
secondary
#DAE5BD
accent
#C91D99
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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