#8A66A2#8A66A2

#8A66A2 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 57.0% C 0.098 H 311.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A66A2
RGBrgb(138, 102, 162)
HSLhsl(276, 24%, 52%)
HSVhsv(276, 37%, 64%)
CMYKcmyk(14.8%, 37%, 0%, 36.5%)
CIE-LABlab(48.90, 26.09, -26.92)
CIE-LCHlch(48.90, 37.49, 314.10°)
OKLaboklab(56.99% 0.0646 -0.0742)
OKLCHoklch(56.99% 0.098 311)
XYZxyz(21.7530, 17.5150, 36.4102)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66A2 #7EA266
analogous
#6C66A2 #8A66A2 #A2669C
triadic
#8A66A2 #A28A66 #66A28A
tetradic
#8A66A2 #A26C66 #7EA266 #669CA2
square
#8A66A2 #A26C66 #7EA266 #669CA2
split-complementary
#8A66A2 #9CA266 #66A26C
monochromatic
#4A3658 #6A4D7E #8A66A2 #A78CB9 #C4B2D0

Accessibility & contrast

On white

4.66
#8A66A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A66A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A66A2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66A2#FFFFFF#000000##FFFFFF
##8A66A21.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A4
Deuteranopia (green-blind)
#6375A0
Tritanopia (blue-blind)
#886E7C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a66a2;
/* rgb */ color: rgb(138, 102, 162);
/* oklch */ color: oklch(57.0% 0.098 311.0);
Tailwind
colors: {
  custom: {
    50: '#ad92bd',
    500: '#8a66a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a66a2;
$custom-light: #ad92bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66a2",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 162
  },
  "hsl": {
    "h": 276,
    "s": 24.39,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56993,
    "c": 0.09839,
    "h": 311
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#8A66A2
secondary
#AFBFA5
accent
#C1678B
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A66A2

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

Preview Lab → · Contrast checker → · Palette generator →

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