#8A66B2#8A66B2

#8A66B2 is a mid, moderate violet. Relative luminance 0.181; OKLCH L 57.8% C 0.119 H 304.8°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A66B2
RGBrgb(138, 102, 178)
HSLhsl(268, 33%, 55%)
HSVhsv(268, 43%, 70%)
CMYKcmyk(22.5%, 42.7%, 0%, 30.2%)
CIE-LABlab(49.64, 29.84, -35.12)
CIE-LCHlch(49.64, 46.08, 310.36°)
OKLaboklab(57.79% 0.068 -0.0978)
OKLCHoklch(57.79% 0.119 304.8)
XYZxyz(23.2668, 18.1205, 44.3827)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66B2 #8EB266
analogous
#6668B2 #8A66B2 #B066B2
triadic
#8A66B2 #B28A66 #66B28A
tetradic
#8A66B2 #B26668 #8EB266 #66B2B0
square
#8A66B2 #B26668 #8EB266 #66B2B0
split-complementary
#8A66B2 #B2B066 #68B266
monochromatic
#4D3569 #6B4992 #8A66B2 #A98FC6 #C8B7DB

Accessibility & contrast

On white

4.54
#8A66B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#8A66B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A66B2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66B2#FFFFFF#000000##000000
##8A66B21.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#5C76B0
Tritanopia (blue-blind)
#847283
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a66b2;
/* rgb */ color: rgb(138, 102, 178);
/* oklch */ color: oklch(57.8% 0.119 304.8);
Tailwind
colors: {
  custom: {
    50: '#ae92c9',
    500: '#8a66b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a66b2;
$custom-light: #ae92c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66b2",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 268.421,
    "s": 33.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57794,
    "c": 0.1191,
    "h": 304.8
  },
  "luminance": 0.1812
}

Semantic roles & 50–950 ramp

primary
#8A66B2
secondary
#BBCAAA
accent
#C95F97
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A66B2

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

Preview Lab → · Contrast checker → · Palette generator →

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