#8A6FCB#8A6FCB

#8A6FCB is a mid, vivid violet. Relative luminance 0.211; OKLCH L 60.8% C 0.138 H 295.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A6FCB
RGBrgb(138, 111, 203)
HSLhsl(258, 47%, 62%)
HSVhsv(258, 45%, 80%)
CMYKcmyk(32%, 45.3%, 0%, 20.4%)
CIE-LABlab(53.04, 30.86, -44.14)
CIE-LCHlch(53.04, 53.86, 304.96°)
OKLaboklab(60.76% 0.0593 -0.1241)
OKLCHoklch(60.76% 0.138 295.5)
XYZxyz(26.9425, 21.0835, 59.1384)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FCB #B0CB6F
analogous
#6F82CB #8A6FCB #B86FCB
triadic
#8A6FCB #CB8A6F #6FCB8A
tetradic
#8A6FCB #CB6F82 #B0CB6F #6FCBB8
square
#8A6FCB #CB6F82 #B0CB6F #6FCBB8
split-complementary
#8A6FCB #CBB86F #82CB6F
monochromatic
#4D338D #6643BA #8A6FCB #AF9CDB #D3C9EB

Accessibility & contrast

On white

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

On black

5.22
#8A6FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FCB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FCB#FFFFFF#000000##000000
##8A6FCB1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#527FCE
Deuteranopia (green-blind)
#567DC9
Tritanopia (blue-blind)
#7C8093
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6fcb;
/* rgb */ color: rgb(138, 111, 203);
/* oklch */ color: oklch(60.8% 0.138 295.5);
Tailwind
colors: {
  custom: {
    50: '#af98db',
    500: '#8a6fcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fcb;
$custom-light: #af98db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fcb",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 203
  },
  "hsl": {
    "h": 257.609,
    "s": 46.939,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60764,
    "c": 0.13752,
    "h": 295.5
  },
  "luminance": 0.21084
}

Semantic roles & 50–950 ramp

primary
#8A6FCB
secondary
#D2DCBA
accent
#BA2B90
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A6FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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