#8A4CAF#8A4CAF

#8A4CAF is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.4% C 0.159 H 311.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A4CAF
RGBrgb(138, 76, 175)
HSLhsl(278, 39%, 49%)
HSVhsv(278, 57%, 69%)
CMYKcmyk(21.1%, 56.6%, 0%, 31.4%)
CIE-LABlab(43.75, 43.76, -42.67)
CIE-LCHlch(43.75, 61.13, 315.72°)
OKLaboklab(53.36% 0.1043 -0.1197)
OKLCHoklch(53.36% 0.159 311.1)
XYZxyz(20.8021, 13.6677, 42.0914)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CAF #71AF4C
analogous
#594CAF #8A4CAF #AF4CA3
triadic
#8A4CAF #AF8A4C #4CAF8A
tetradic
#8A4CAF #AF594C #71AF4C #4CA3AF
square
#8A4CAF #AF594C #71AF4C #4CA3AF
split-complementary
#8A4CAF #A3AF4C #4CAF59
monochromatic
#47275A #683984 #8A4CAF #A675C3 #C2A0D6

Accessibility & contrast

On white

5.62
#8A4CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A4CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CAF
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CAF#FFFFFF#000000##FFFFFF
##8A4CAF1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E64B2
Deuteranopia (green-blind)
#4469AD
Tritanopia (blue-blind)
#865D76
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4caf;
/* rgb */ color: rgb(138, 76, 175);
/* oklch */ color: oklch(53.4% 0.159 311.1);
Tailwind
colors: {
  custom: {
    50: '#af81c7',
    500: '#8a4caf',
    950: '#000000',
  },
}
SCSS
$custom: #8a4caf;
$custom-light: #af81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4caf",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 277.576,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53362,
    "c": 0.15875,
    "h": 311.1
  },
  "luminance": 0.13667
}

Semantic roles & 50–950 ramp

primary
#8A4CAF
secondary
#A6C294
accent
#CF5885
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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