#8A66E4#8A66E4

#8A66E4 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.7% C 0.184 H 293.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A66E4
RGBrgb(138, 102, 228)
HSLhsl(257, 70%, 65%)
HSVhsv(257, 55%, 89%)
CMYKcmyk(39.5%, 55.3%, 0%, 10.6%)
CIE-LABlab(52.41, 42.65, -59.32)
CIE-LCHlch(52.41, 73.06, 305.72°)
OKLaboklab(60.75% 0.0727 -0.1685)
OKLCHoklch(60.75% 0.184 293.3)
XYZxyz(29.2325, 20.5067, 75.8018)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66E4 #C0E466
analogous
#6681E4 #8A66E4 #C966E4
triadic
#8A66E4 #E48A66 #66E48A
tetradic
#8A66E4 #E46681 #C0E466 #66E4C9
square
#8A66E4 #E46681 #C0E466 #66E4C9
split-complementary
#8A66E4 #E4C966 #81E466
monochromatic
#491FB0 #6232DB #8A66E4 #B29AED #DACEF6

Accessibility & contrast

On white

4.12
#8A66E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A66E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A66E4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66E4#FFFFFF#000000##000000
##8A66E41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#267FE8
Deuteranopia (green-blind)
#317BE1
Tritanopia (blue-blind)
#73819B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a66e4;
/* rgb */ color: rgb(138, 102, 228);
/* oklch */ color: oklch(60.7% 0.184 293.3);
Tailwind
colors: {
  custom: {
    50: '#b193ed',
    500: '#8a66e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a66e4;
$custom-light: #b193ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66e4",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 257.143,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60749,
    "c": 0.18355,
    "h": 293.3
  },
  "luminance": 0.20507
}

Semantic roles & 50–950 ramp

primary
#8A66E4
secondary
#DCE9BD
accent
#D2149C
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A66E4

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

Preview Lab → · Contrast checker → · Palette generator →

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