#8A68CB#8A68CB

#8A68CB is a mid, vivid violet. Relative luminance 0.196; OKLCH L 59.5% C 0.149 H 297.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A68CB
RGBrgb(138, 104, 203)
HSLhsl(261, 49%, 60%)
HSVhsv(261, 49%, 80%)
CMYKcmyk(32%, 48.8%, 0%, 20.4%)
CIE-LABlab(51.40, 34.92, -46.75)
CIE-LCHlch(51.40, 58.35, 306.76°)
OKLaboklab(59.53% 0.0687 -0.1317)
OKLCHoklch(59.53% 0.149 297.6)
XYZxyz(26.2084, 19.6154, 58.8937)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68CB #A9CB68
analogous
#6878CB #8A68CB #BB68CB
triadic
#8A68CB #CB8A68 #68CB8A
tetradic
#8A68CB #CB6878 #A9CB68 #68CBBB
square
#8A68CB #CB6878 #A9CB68 #68CBBB
split-complementary
#8A68CB #CBBB68 #78CB68
monochromatic
#4E2F89 #683FB7 #8A68CB #AD96DB #D1C3EA

Accessibility & contrast

On white

4.27
#8A68CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8A68CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68CB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68CB#FFFFFF#000000##000000
##8A68CB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#467BCF
Deuteranopia (green-blind)
#4E79C9
Tritanopia (blue-blind)
#7C7B90
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a68cb;
/* rgb */ color: rgb(138, 104, 203);
/* oklch */ color: oklch(59.5% 0.149 297.6);
Tailwind
colors: {
  custom: {
    50: '#af94db',
    500: '#8a68cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a68cb;
$custom-light: #af94db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68cb",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 203
  },
  "hsl": {
    "h": 260.606,
    "s": 48.768,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59533,
    "c": 0.14853,
    "h": 297.6
  },
  "luminance": 0.19616
}

Semantic roles & 50–950 ramp

primary
#8A68CB
secondary
#CDDAB4
accent
#BC298A
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A68CB

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

Preview Lab → · Contrast checker → · Palette generator →

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