#8A4AAF#8A4AAF

#8A4AAF is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.162 H 311.3°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A4AAF
RGBrgb(138, 74, 175)
HSLhsl(278, 41%, 49%)
HSVhsv(278, 58%, 69%)
CMYKcmyk(21.1%, 57.7%, 0%, 31.4%)
CIE-LABlab(43.35, 44.82, -43.31)
CIE-LCHlch(43.35, 62.33, 315.99°)
OKLaboklab(53.07% 0.107 -0.1215)
OKLCHoklch(53.07% 0.162 311.3)
XYZxyz(20.6665, 13.3964, 42.0462)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AAF #6FAF4A
analogous
#584AAF #8A4AAF #AF4AA2
triadic
#8A4AAF #AF8A4A #4AAF8A
tetradic
#8A4AAF #AF584A #6FAF4A #4AA2AF
square
#8A4AAF #AF584A #6FAF4A #4AA2AF
split-complementary
#8A4AAF #A2AF4A #4AAF58
monochromatic
#462659 #683884 #8A4AAF #A673C4 #C19ED6

Accessibility & contrast

On white

5.71
#8A4AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A4AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AAF
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AAF#FFFFFF#000000##FFFFFF
##8A4AAF1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#4268AD
Tritanopia (blue-blind)
#865C75
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4aaf;
/* rgb */ color: rgb(138, 74, 175);
/* oklch */ color: oklch(53.1% 0.162 311.3);
Tailwind
colors: {
  custom: {
    50: '#af7fc7',
    500: '#8a4aaf',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aaf;
$custom-light: #af7fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aaf",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 278.02,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5307,
    "c": 0.1619,
    "h": 311.3
  },
  "luminance": 0.13396
}

Semantic roles & 50–950 ramp

primary
#8A4AAF
secondary
#A4C292
accent
#D05784
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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