#8A66DD#8A66DD

#8A66DD is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.3% C 0.175 H 294.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A66DD
RGBrgb(138, 102, 221)
HSLhsl(258, 64%, 63%)
HSVhsv(258, 54%, 87%)
CMYKcmyk(37.6%, 53.8%, 0%, 13.3%)
CIE-LABlab(51.98, 40.79, -56.05)
CIE-LCHlch(51.98, 69.32, 306.04°)
OKLaboklab(60.3% 0.0725 -0.1589)
OKLCHoklch(60.3% 0.175 294.5)
XYZxyz(28.2803, 20.1259, 70.7873)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66DD #B9DD66
analogous
#667DDD #8A66DD #C566DD
triadic
#8A66DD #DD8A66 #66DD8A
tetradic
#8A66DD #DD667D #B9DD66 #66DDC5
square
#8A66DD #DD667D #B9DD66 #66DDC5
split-complementary
#8A66DD #DDC566 #7DDD66
monochromatic
#4B24A4 #6434D2 #8A66DD #B098E8 #D7CAF3

Accessibility & contrast

On white

4.18
#8A66DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A66DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A66DD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66DD#FFFFFF#000000##000000
##8A66DD1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#317DE1
Deuteranopia (green-blind)
#3A7ADA
Tritanopia (blue-blind)
#767F98
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a66dd;
/* rgb */ color: rgb(138, 102, 221);
/* oklch */ color: oklch(60.3% 0.175 294.5);
Tailwind
colors: {
  custom: {
    50: '#b092e8',
    500: '#8a66dd',
    950: '#000000',
  },
}
SCSS
$custom: #8a66dd;
$custom-light: #b092e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66dd",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 221
  },
  "hsl": {
    "h": 258.151,
    "s": 63.636,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60297,
    "c": 0.17472,
    "h": 294.5
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#8A66DD
secondary
#D8E5BA
accent
#CB1A96
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A66DD

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

Preview Lab → · Contrast checker → · Palette generator →

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