#8A4EAF#8A4EAF

#8A4EAF is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.7% C 0.156 H 310.8°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A4EAF
RGBrgb(138, 78, 175)
HSLhsl(277, 38%, 50%)
HSVhsv(277, 55%, 69%)
CMYKcmyk(21.1%, 55.4%, 0%, 31.4%)
CIE-LABlab(44.16, 42.69, -42.03)
CIE-LCHlch(44.16, 59.91, 315.45°)
OKLaboklab(53.66% 0.1016 -0.1178)
OKLCHoklch(53.66% 0.156 310.8)
XYZxyz(20.9421, 13.9476, 42.1381)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EAF #73AF4E
analogous
#594EAF #8A4EAF #AF4EA4
triadic
#8A4EAF #AF8A4E #4EAF8A
tetradic
#8A4EAF #AF594E #73AF4E #4EA4AF
square
#8A4EAF #AF594E #73AF4E #4EA4AF
split-complementary
#8A4EAF #A4AF4E #4EAF59
monochromatic
#47285A #693B85 #8A4EAF #A678C3 #C2A2D6

Accessibility & contrast

On white

5.54
#8A4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EAF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EAF#FFFFFF#000000##FFFFFF
##8A4EAF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B2
Deuteranopia (green-blind)
#466AAD
Tritanopia (blue-blind)
#865F77
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4eaf;
/* rgb */ color: rgb(138, 78, 175);
/* oklch */ color: oklch(53.7% 0.156 310.8);
Tailwind
colors: {
  custom: {
    50: '#af82c7',
    500: '#8a4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eaf;
$custom-light: #af82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eaf",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 277.113,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.15558,
    "h": 310.8
  },
  "luminance": 0.13947
}

Semantic roles & 50–950 ramp

primary
#8A4EAF
secondary
#A7C396
accent
#CE5A86
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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