#8A68EC#8A68EC

#8A68EC is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.6% C 0.191 H 291.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A68EC
RGBrgb(138, 104, 236)
HSLhsl(255, 78%, 67%)
HSVhsv(255, 56%, 93%)
CMYKcmyk(41.5%, 55.9%, 0%, 7.5%)
CIE-LABlab(53.34, 43.69, -62.30)
CIE-LCHlch(53.34, 76.09, 305.04°)
OKLaboklab(61.6% 0.0705 -0.1773)
OKLCHoklch(61.6% 0.191 291.7)
XYZxyz(30.5677, 21.3591, 81.8528)
Luminance0.2136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68EC #CAEC68
analogous
#6888EC #8A68EC #CC68EC
triadic
#8A68EC #EC8A68 #68EC8A
tetradic
#8A68EC #EC6888 #CAEC68 #68ECCC
square
#8A68EC #EC6888 #CAEC68 #68ECCC
split-complementary
#8A68EC #ECCC68 #88EC68
monochromatic
#4418C1 #6032E5 #8A68EC #B49EF3 #DED5FA

Accessibility & contrast

On white

3.98
#8A68EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8A68EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68EC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68EC#FFFFFF#000000##000000
##8A68EC1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D81F0
Deuteranopia (green-blind)
#287DE9
Tritanopia (blue-blind)
#6F85A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a68ec;
/* rgb */ color: rgb(138, 104, 236);
/* oklch */ color: oklch(61.6% 0.191 291.7);
Tailwind
colors: {
  custom: {
    50: '#b294f3',
    500: '#8a68ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a68ec;
$custom-light: #b294f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68ec",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 236
  },
  "hsl": {
    "h": 255.455,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.61598,
    "c": 0.19079,
    "h": 291.7
  },
  "luminance": 0.2136
}

Semantic roles & 50–950 ramp

primary
#8A68EC
secondary
#E2EDC3
accent
#DA0CA5
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A68EC

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

Preview Lab → · Contrast checker → · Palette generator →

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