#8A68DC#8A68DC

#8A68DC is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.6% C 0.171 H 294.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A68DC
RGBrgb(138, 104, 220)
HSLhsl(258, 62%, 64%)
HSVhsv(258, 53%, 86%)
CMYKcmyk(37.3%, 52.7%, 0%, 13.7%)
CIE-LABlab(52.37, 39.38, -54.87)
CIE-LCHlch(52.37, 67.54, 305.67°)
OKLaboklab(60.56% 0.07 -0.1555)
OKLCHoklch(60.56% 0.171 294.2)
XYZxyz(28.3464, 20.4706, 70.1540)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68DC #BADC68
analogous
#6880DC #8A68DC #C468DC
triadic
#8A68DC #DC8A68 #68DC8A
tetradic
#8A68DC #DC6880 #BADC68 #68DCC4
square
#8A68DC #DC6880 #BADC68 #68DCC4
split-complementary
#8A68DC #DCC468 #80DC68
monochromatic
#4B26A4 #6436D0 #8A68DC #B09AE8 #D7CBF3

Accessibility & contrast

On white

4.12
#8A68DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A68DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68DC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68DC#FFFFFF#000000##000000
##8A68DC1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EE0
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#768098
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a68dc;
/* rgb */ color: rgb(138, 104, 220);
/* oklch */ color: oklch(60.6% 0.171 294.2);
Tailwind
colors: {
  custom: {
    50: '#b094e7',
    500: '#8a68dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a68dc;
$custom-light: #b094e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68dc",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 220
  },
  "hsl": {
    "h": 257.586,
    "s": 62.366,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60564,
    "c": 0.17051,
    "h": 294.2
  },
  "luminance": 0.20471
}

Semantic roles & 50–950 ramp

primary
#8A68DC
secondary
#D8E4BB
accent
#CA1B97
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A68DC

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

Preview Lab → · Contrast checker → · Palette generator →

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