#8A68E4#8A68E4

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

Color values

HEX#8A68E4
RGBrgb(138, 104, 228)
HSLhsl(256, 70%, 65%)
HSVhsv(256, 54%, 89%)
CMYKcmyk(39.5%, 54.4%, 0%, 10.6%)
CIE-LABlab(52.84, 41.52, -58.61)
CIE-LCHlch(52.84, 71.83, 305.32°)
OKLaboklab(61.07% 0.0704 -0.1665)
OKLCHoklch(61.07% 0.181 292.9)
XYZxyz(29.4314, 20.9046, 75.8681)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68E4 #C2E468
analogous
#6884E4 #8A68E4 #C868E4
triadic
#8A68E4 #E48A68 #68E48A
tetradic
#8A68E4 #E46884 #C2E468 #68E4C8
square
#8A68E4 #E46884 #C2E468 #68E4C8
split-complementary
#8A68E4 #E4C868 #84E468
monochromatic
#4820B2 #6234DB #8A68E4 #B29CED #DAD0F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A68E4#FFFFFF#000000##000000
##8A68E41.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)
#2C80E8
Deuteranopia (green-blind)
#357CE1
Tritanopia (blue-blind)
#72829C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a68e4;
/* rgb */ color: rgb(138, 104, 228);
/* oklch */ color: oklch(61.1% 0.181 292.9);
Tailwind
colors: {
  custom: {
    50: '#b194ed',
    500: '#8a68e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a68e4;
$custom-light: #b194ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68e4",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 228
  },
  "hsl": {
    "h": 256.452,
    "s": 69.663,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61074,
    "c": 0.18072,
    "h": 292.9
  },
  "luminance": 0.20905
}

Semantic roles & 50–950 ramp

primary
#8A68E4
secondary
#DDE9BF
accent
#D2149E
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A68E4

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

Preview Lab → · Contrast checker → · Palette generator →

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