#8A4EB3#8A4EB3

#8A4EB3 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.160 H 309.5°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB3
RGBrgb(138, 78, 179)
HSLhsl(276, 40%, 50%)
HSVhsv(276, 56%, 70%)
CMYKcmyk(22.9%, 56.4%, 0%, 29.8%)
CIE-LABlab(44.39, 43.61, -44.02)
CIE-LCHlch(44.39, 61.96, 314.74°)
OKLaboklab(53.9% 0.1018 -0.1236)
OKLCHoklch(53.9% 0.16 309.5)
XYZxyz(21.3407, 14.1071, 44.2378)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB3 #77B34E
analogous
#584EB3 #8A4EB3 #B34EA9
triadic
#8A4EB3 #B38A4E #4EB38A
tetradic
#8A4EB3 #B3584E #77B34E #4EA9B3
square
#8A4EB3 #B3584E #77B34E #4EA9B3
split-complementary
#8A4EB3 #A9B34E #4EB358
monochromatic
#48285E #693B89 #8A4EB3 #A679C5 #C3A4D8

Accessibility & contrast

On white

5.50
#8A4EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8A4EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB3
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB3#FFFFFF#000000##FFFFFF
##8A4EB31.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B6
Deuteranopia (green-blind)
#436AB1
Tritanopia (blue-blind)
#856079
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4eb3;
/* rgb */ color: rgb(138, 78, 179);
/* oklch */ color: oklch(53.9% 0.160 309.5);
Tailwind
colors: {
  custom: {
    50: '#af82ca',
    500: '#8a4eb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb3;
$custom-light: #af82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb3",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 275.644,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53901,
    "c": 0.16015,
    "h": 309.5
  },
  "luminance": 0.14107
}

Semantic roles & 50–950 ramp

primary
#8A4EB3
secondary
#AAC598
accent
#D05889
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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