#8A68E2#8A68E2

#8A68E2 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.9% C 0.178 H 293.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A68E2
RGBrgb(138, 104, 226)
HSLhsl(257, 68%, 65%)
HSVhsv(257, 54%, 89%)
CMYKcmyk(38.9%, 54%, 0%, 11.4%)
CIE-LABlab(52.72, 40.99, -57.68)
CIE-LCHlch(52.72, 70.76, 305.40°)
OKLaboklab(60.95% 0.0703 -0.1637)
OKLCHoklch(60.95% 0.178 293.2)
XYZxyz(29.1554, 20.7942, 74.4143)
Luminance0.2079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68E2 #C0E268
analogous
#6883E2 #8A68E2 #C768E2
triadic
#8A68E2 #E28A68 #68E28A
tetradic
#8A68E2 #E26883 #C0E268 #68E2C7
square
#8A68E2 #E26883 #C0E268 #68E2C7
split-complementary
#8A68E2 #E2C768 #83E268
monochromatic
#4921AE #6235D8 #8A68E2 #B29BEC #DACFF6

Accessibility & contrast

On white

4.07
#8A68E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8A68E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68E2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68E2#FFFFFF#000000##000000
##8A68E21.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7FE6
Deuteranopia (green-blind)
#387CDF
Tritanopia (blue-blind)
#73819B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a68e2;
/* rgb */ color: rgb(138, 104, 226);
/* oklch */ color: oklch(60.9% 0.178 293.2);
Tailwind
colors: {
  custom: {
    50: '#b194ec',
    500: '#8a68e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a68e2;
$custom-light: #b194ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68e2",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 226
  },
  "hsl": {
    "h": 256.721,
    "s": 67.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60945,
    "c": 0.17817,
    "h": 293.2
  },
  "luminance": 0.20795
}

Semantic roles & 50–950 ramp

primary
#8A68E2
secondary
#DCE8BE
accent
#D0169C
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A68E2

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

Preview Lab → · Contrast checker → · Palette generator →

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