#8A6BCB#8A6BCB

#8A6BCB is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.1% C 0.144 H 296.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A6BCB
RGBrgb(138, 107, 203)
HSLhsl(259, 48%, 61%)
HSVhsv(259, 47%, 80%)
CMYKcmyk(32%, 47.3%, 0%, 20.4%)
CIE-LABlab(52.10, 33.19, -45.64)
CIE-LCHlch(52.10, 56.43, 306.02°)
OKLaboklab(60.05% 0.0647 -0.1284)
OKLCHoklch(60.05% 0.144 296.7)
XYZxyz(26.5158, 20.2301, 58.9962)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BCB #ACCB6B
analogous
#6B7CCB #8A6BCB #BA6BCB
triadic
#8A6BCB #CB8A6B #6BCB8A
tetradic
#8A6BCB #CB6B7C #ACCB6B #6BCBBA
square
#8A6BCB #CB6B7C #ACCB6B #6BCBBA
split-complementary
#8A6BCB #CBBA6B #7CCB6B
monochromatic
#4E318B #6741B8 #8A6BCB #AE98DB #D2C6EB

Accessibility & contrast

On white

4.16
#8A6BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A6BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BCB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BCB#FFFFFF#000000##000000
##8A6BCB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7DCE
Deuteranopia (green-blind)
#527BC9
Tritanopia (blue-blind)
#7C7D91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6bcb;
/* rgb */ color: rgb(138, 107, 203);
/* oklch */ color: oklch(60.1% 0.144 296.7);
Tailwind
colors: {
  custom: {
    50: '#af96db',
    500: '#8a6bcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bcb;
$custom-light: #af96db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bcb",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 203
  },
  "hsl": {
    "h": 259.375,
    "s": 48,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60054,
    "c": 0.14382,
    "h": 296.7
  },
  "luminance": 0.2023
}

Semantic roles & 50–950 ramp

primary
#8A6BCB
secondary
#CFDBB7
accent
#BB2A8C
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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