#8A68CC#8A68CC

#8A68CC is a mid, vivid violet. Relative luminance 0.197; OKLCH L 59.6% C 0.150 H 297.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A68CC
RGBrgb(138, 104, 204)
HSLhsl(260, 50%, 60%)
HSVhsv(260, 49%, 80%)
CMYKcmyk(32.4%, 49%, 0%, 20%)
CIE-LABlab(51.45, 35.18, -47.23)
CIE-LCHlch(51.45, 58.90, 306.68°)
OKLaboklab(59.59% 0.0688 -0.1331)
OKLCHoklch(59.59% 0.15 297.3)
XYZxyz(26.3280, 19.6632, 59.5233)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68CC #AACC68
analogous
#6878CC #8A68CC #BC68CC
triadic
#8A68CC #CC8A68 #68CC8A
tetradic
#8A68CC #CC6878 #AACC68 #68CCBC
square
#8A68CC #CC6878 #AACC68 #68CCBC
split-complementary
#8A68CC #CCBC68 #78CC68
monochromatic
#4E2F8B #683EB8 #8A68CC #AD96DB #D1C3EB

Accessibility & contrast

On white

4.26
#8A68CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A68CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68CC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68CC#FFFFFF#000000##000000
##8A68CC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#467BD0
Deuteranopia (green-blind)
#4D7ACA
Tritanopia (blue-blind)
#7C7B90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a68cc;
/* rgb */ color: rgb(138, 104, 204);
/* oklch */ color: oklch(59.6% 0.150 297.3);
Tailwind
colors: {
  custom: {
    50: '#af94dc',
    500: '#8a68cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a68cc;
$custom-light: #af94dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68cc",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 204
  },
  "hsl": {
    "h": 260.4,
    "s": 49.505,
    "l": 60.392
  },
  "oklch": {
    "l": 0.59591,
    "c": 0.14983,
    "h": 297.3
  },
  "luminance": 0.19664
}

Semantic roles & 50–950 ramp

primary
#8A68CC
secondary
#CEDBB5
accent
#BD298A
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A68CC

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

Preview Lab → · Contrast checker → · Palette generator →

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