#8A66EB#8A66EB

#8A66EB is a mid, vivid violet. Relative luminance 0.209; OKLCH L 61.2% C 0.192 H 292.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A66EB
RGBrgb(138, 102, 235)
HSLhsl(256, 77%, 66%)
HSVhsv(256, 57%, 92%)
CMYKcmyk(41.3%, 56.6%, 0%, 7.8%)
CIE-LABlab(52.84, 44.54, -62.54)
CIE-LCHlch(52.84, 76.78, 305.46°)
OKLaboklab(61.21% 0.0728 -0.178)
OKLCHoklch(61.21% 0.192 292.2)
XYZxyz(30.2239, 20.9033, 81.0235)
Luminance0.2090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A66EB #C7EB66
analogous
#6684EB #8A66EB #CD66EB
triadic
#8A66EB #EB8A66 #66EB8A
tetradic
#8A66EB #EB6684 #C7EB66 #66EBCD
square
#8A66EB #EB6684 #C7EB66 #66EBCD
split-complementary
#8A66EB #EBCD66 #84EB66
monochromatic
#4519BE #6130E4 #8A66EB #B39CF2 #DDD2F9

Accessibility & contrast

On white

4.05
#8A66EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8A66EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A66EB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A66EB#FFFFFF#000000##000000
##8A66EB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1780EF
Deuteranopia (green-blind)
#257CE8
Tritanopia (blue-blind)
#6F839F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a66eb;
/* rgb */ color: rgb(138, 102, 235);
/* oklch */ color: oklch(61.2% 0.192 292.2);
Tailwind
colors: {
  custom: {
    50: '#b293f2',
    500: '#8a66eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a66eb;
$custom-light: #b293f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a66eb",
  "rgb": {
    "r": 138,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 256.241,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.61212,
    "c": 0.19232,
    "h": 292.2
  },
  "luminance": 0.20904
}

Semantic roles & 50–950 ramp

primary
#8A66EB
secondary
#E0ECC1
accent
#D90CA2
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A66EB

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

Preview Lab → · Contrast checker → · Palette generator →

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