#8A66CC#8A66CC

#8A66CC is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.3% C 0.153 H 297.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A66CC
RGBrgb(138, 102, 204)
HSLhsl(261, 50%, 60%)
HSVhsv(261, 50%, 80%)
CMYKcmyk(32.4%, 50%, 0%, 20%)
CIE-LABlab(51.00, 36.33, -47.96)
CIE-LCHlch(51.00, 60.17, 307.15°)
OKLaboklab(59.25% 0.0715 -0.1352)
OKLCHoklch(59.25% 0.153 297.9)
XYZxyz(26.1290, 19.2654, 59.4570)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66CC #A8CC66
analogous
#6675CC #8A66CC #BD66CC
triadic
#8A66CC #CC8A66 #66CC8A
tetradic
#8A66CC #CC6675 #A8CC66 #66CCBD
square
#8A66CC #CC6675 #A8CC66 #66CCBD
split-complementary
#8A66CC #CCBD66 #75CC66
monochromatic
#4E2E8A #683DB8 #8A66CC #AD94DB #D0C2EB

Accessibility & contrast

On white

4.33
#8A66CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8A66CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A66CC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66CC#FFFFFF#000000##000000
##8A66CC1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#427AD0
Deuteranopia (green-blind)
#4B78CA
Tritanopia (blue-blind)
#7C798F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a66cc;
/* rgb */ color: rgb(138, 102, 204);
/* oklch */ color: oklch(59.3% 0.153 297.9);
Tailwind
colors: {
  custom: {
    50: '#af92dc',
    500: '#8a66cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a66cc;
$custom-light: #af92dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66cc",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 261.176,
    "s": 50,
    "l": 60
  },
  "oklch": {
    "l": 0.5925,
    "c": 0.15295,
    "h": 297.9
  },
  "luminance": 0.19266
}

Semantic roles & 50–950 ramp

primary
#8A66CC
secondary
#CDDBB3
accent
#DA4EA8
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A66CC

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

Preview Lab → · Contrast checker → · Palette generator →

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