#8A68D6#8A68D6

#8A68D6 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.2% C 0.163 H 295.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A68D6
RGBrgb(138, 104, 214)
HSLhsl(259, 57%, 62%)
HSVhsv(259, 51%, 84%)
CMYKcmyk(35.5%, 51.4%, 0%, 16.1%)
CIE-LABlab(52.02, 37.79, -52.03)
CIE-LCHlch(52.02, 64.31, 305.99°)
OKLaboklab(60.19% 0.0697 -0.1471)
OKLCHoklch(60.19% 0.163 295.3)
XYZxyz(27.5660, 20.1585, 66.0439)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68D6 #B4D668
analogous
#687DD6 #8A68D6 #C168D6
triadic
#8A68D6 #D68A68 #68D68A
tetradic
#8A68D6 #D6687D #B4D668 #68D6C1
square
#8A68D6 #D6687D #B4D668 #68D6C1
split-complementary
#8A68D6 #D6C168 #7DD668
monochromatic
#4C2A9A #6538C9 #8A68D6 #AF98E3 #D5C8F0

Accessibility & contrast

On white

4.17
#8A68D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A68D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68D6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68D6#FFFFFF#000000##000000
##8A68D61.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7DDA
Deuteranopia (green-blind)
#457AD3
Tritanopia (blue-blind)
#787E95
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a68d6;
/* rgb */ color: rgb(138, 104, 214);
/* oklch */ color: oklch(60.2% 0.163 295.3);
Tailwind
colors: {
  custom: {
    50: '#b094e3',
    500: '#8a68d6',
    950: '#000000',
  },
}
SCSS
$custom: #8a68d6;
$custom-light: #b094e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68d6",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 214
  },
  "hsl": {
    "h": 258.545,
    "s": 57.292,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60192,
    "c": 0.1628,
    "h": 295.3
  },
  "luminance": 0.20159
}

Semantic roles & 50–950 ramp

primary
#8A68D6
secondary
#D5E1B9
accent
#C52192
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#110D15
muted
#807E84

Preview Lab

Preview with #8A68D6

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

Preview Lab → · Contrast checker → · Palette generator →

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