#8A68D7#8A68D7

#8A68D7 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.3% C 0.164 H 295.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A68D7
RGBrgb(138, 104, 215)
HSLhsl(258, 58%, 63%)
HSVhsv(258, 52%, 84%)
CMYKcmyk(35.8%, 51.6%, 0%, 15.7%)
CIE-LABlab(52.07, 38.06, -52.51)
CIE-LCHlch(52.07, 64.85, 305.94°)
OKLaboklab(60.25% 0.0697 -0.1485)
OKLCHoklch(60.25% 0.164 295.2)
XYZxyz(27.6941, 20.2097, 66.7186)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68D7 #B5D768
analogous
#687ED7 #8A68D7 #C168D7
triadic
#8A68D7 #D78A68 #68D78A
tetradic
#8A68D7 #D7687E #B5D768 #68D7C1
square
#8A68D7 #D7687E #B5D768 #68D7C1
split-complementary
#8A68D7 #D7C168 #7ED768
monochromatic
#4C299B #6538CA #8A68D7 #AF98E4 #D5C9F1

Accessibility & contrast

On white

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

On black

5.04
#8A68D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68D7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68D7#FFFFFF#000000##000000
##8A68D71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7DDB
Deuteranopia (green-blind)
#447BD4
Tritanopia (blue-blind)
#787E96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a68d7;
/* rgb */ color: rgb(138, 104, 215);
/* oklch */ color: oklch(60.3% 0.164 295.2);
Tailwind
colors: {
  custom: {
    50: '#b094e4',
    500: '#8a68d7',
    950: '#000000',
  },
}
SCSS
$custom: #8a68d7;
$custom-light: #b094e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68d7",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 215
  },
  "hsl": {
    "h": 258.378,
    "s": 58.115,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60253,
    "c": 0.1641,
    "h": 295.2
  },
  "luminance": 0.2021
}

Semantic roles & 50–950 ramp

primary
#8A68D7
secondary
#D5E2B9
accent
#C62093
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#110D15
muted
#807E84

Preview Lab

Preview with #8A68D7

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

Preview Lab → · Contrast checker → · Palette generator →

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