#8A68EB#8A68EB

#8A68EB is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.5% C 0.190 H 291.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A68EB
RGBrgb(138, 104, 235)
HSLhsl(256, 77%, 66%)
HSVhsv(256, 56%, 92%)
CMYKcmyk(41.3%, 55.7%, 0%, 7.8%)
CIE-LABlab(53.28, 43.41, -61.84)
CIE-LCHlch(53.28, 75.56, 305.07°)
OKLaboklab(61.53% 0.0705 -0.1759)
OKLCHoklch(61.53% 0.19 291.8)
XYZxyz(30.4229, 21.3012, 81.0898)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68EB #C9EB68
analogous
#6888EB #8A68EB #CC68EB
triadic
#8A68EB #EB8A68 #68EB8A
tetradic
#8A68EB #EB6888 #C9EB68 #68EBCC
square
#8A68EB #EB6888 #C9EB68 #68EBCC
split-complementary
#8A68EB #EBCC68 #88EB68
monochromatic
#4419BF #6032E4 #8A68EB #B49EF2 #DED4F9

Accessibility & contrast

On white

3.99
#8A68EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#8A68EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68EB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68EB#FFFFFF#000000##000000
##8A68EB1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EF
Deuteranopia (green-blind)
#2A7DE8
Tritanopia (blue-blind)
#6F84A0
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a68eb;
/* rgb */ color: rgb(138, 104, 235);
/* oklch */ color: oklch(61.5% 0.190 291.8);
Tailwind
colors: {
  custom: {
    50: '#b294f2',
    500: '#8a68eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a68eb;
$custom-light: #b294f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68eb",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 235
  },
  "hsl": {
    "h": 255.573,
    "s": 76.608,
    "l": 66.471
  },
  "oklch": {
    "l": 0.61532,
    "c": 0.18954,
    "h": 291.8
  },
  "luminance": 0.21302
}

Semantic roles & 50–950 ramp

primary
#8A68EB
secondary
#E2EDC2
accent
#D90DA4
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A68EB

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

Preview Lab → · Contrast checker → · Palette generator →

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