#8A66E2#8A66E2

#8A66E2 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.6% C 0.181 H 293.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A66E2
RGBrgb(138, 102, 226)
HSLhsl(257, 68%, 64%)
HSVhsv(257, 55%, 89%)
CMYKcmyk(38.9%, 54.9%, 0%, 11.4%)
CIE-LABlab(52.28, 42.12, -58.39)
CIE-LCHlch(52.28, 71.99, 305.80°)
OKLaboklab(60.62% 0.0727 -0.1658)
OKLCHoklch(60.62% 0.181 293.7)
XYZxyz(28.9564, 20.3963, 74.3480)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66E2 #BEE266
analogous
#6680E2 #8A66E2 #C866E2
triadic
#8A66E2 #E28A66 #66E28A
tetradic
#8A66E2 #E26680 #BEE266 #66E2C8
square
#8A66E2 #E26680 #BEE266 #66E2C8
split-complementary
#8A66E2 #E2C866 #80E266
monochromatic
#4921AD #6333D8 #8A66E2 #B199EC #D9CDF6

Accessibility & contrast

On white

4.13
#8A66E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#8A66E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A66E2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66E2#FFFFFF#000000##000000
##8A66E21.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7EE6
Deuteranopia (green-blind)
#347BDF
Tritanopia (blue-blind)
#73809A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a66e2;
/* rgb */ color: rgb(138, 102, 226);
/* oklch */ color: oklch(60.6% 0.181 293.7);
Tailwind
colors: {
  custom: {
    50: '#b193ec',
    500: '#8a66e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a66e2;
$custom-light: #b193ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66e2",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 226
  },
  "hsl": {
    "h": 257.419,
    "s": 68.132,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60619,
    "c": 0.18104,
    "h": 293.7
  },
  "luminance": 0.20397
}

Semantic roles & 50–950 ramp

primary
#8A66E2
secondary
#DBE7BC
accent
#D0159A
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A66E2

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

Preview Lab → · Contrast checker → · Palette generator →

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