#8A68AB#8A68AB

#8A68AB is a mid, moderate violet. Relative luminance 0.182; OKLCH L 57.8% C 0.106 H 306.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A68AB
RGBrgb(138, 104, 171)
HSLhsl(270, 29%, 54%)
HSVhsv(270, 39%, 67%)
CMYKcmyk(19.3%, 39.2%, 0%, 32.9%)
CIE-LABlab(49.79, 27.00, -30.80)
CIE-LCHlch(49.79, 40.96, 311.24°)
OKLaboklab(57.8% 0.0636 -0.0854)
OKLCHoklch(57.8% 0.106 306.7)
XYZxyz(22.7808, 18.2443, 40.8416)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68AB #89AB68
analogous
#6968AB #8A68AB #AB68AB
triadic
#8A68AB #AB8A68 #68AB8A
tetradic
#8A68AB #AB6968 #89AB68 #68ABAB
square
#8A68AB #AB6968 #89AB68 #68ABAB
split-complementary
#8A68AB #ABAB68 #68AB69
monochromatic
#4D3762 #6B4C89 #8A68AB #A88FC1 #C7B7D7

Accessibility & contrast

On white

4.52
#8A68AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#8A68AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68AB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68AB#FFFFFF#000000##000000
##8A68AB1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5975AE
Deuteranopia (green-blind)
#6177A9
Tritanopia (blue-blind)
#857281
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a68ab;
/* rgb */ color: rgb(138, 104, 171);
/* oklch */ color: oklch(57.8% 0.106 306.7);
Tailwind
colors: {
  custom: {
    50: '#ad93c4',
    500: '#8a68ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a68ab;
$custom-light: #ad93c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68ab",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 171
  },
  "hsl": {
    "h": 270.448,
    "s": 28.511,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57798,
    "c": 0.10646,
    "h": 306.7
  },
  "luminance": 0.18244
}

Semantic roles & 50–950 ramp

primary
#8A68AB
secondary
#B7C6A9
accent
#C56393
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A68AB

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

Preview Lab → · Contrast checker → · Palette generator →

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