#8A4EB7#8A4EB7

#8A4EB7 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.165 H 308.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB7
RGBrgb(138, 78, 183)
HSLhsl(274, 42%, 51%)
HSVhsv(274, 57%, 72%)
CMYKcmyk(24.6%, 57.4%, 0%, 28.2%)
CIE-LABlab(44.62, 44.54, -45.99)
CIE-LCHlch(44.62, 64.02, 314.09°)
OKLaboklab(54.15% 0.1019 -0.1294)
OKLCHoklch(54.15% 0.165 308.2)
XYZxyz(21.7512, 14.2713, 46.3993)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB7 #7BB74E
analogous
#554EB7 #8A4EB7 #B74EAF
triadic
#8A4EB7 #B78A4E #4EB78A
tetradic
#8A4EB7 #B7554E #7BB74E #4EAFB7
square
#8A4EB7 #B7554E #7BB74E #4EAFB7
split-complementary
#8A4EB7 #AFB74E #4EB755
monochromatic
#492863 #6A3A8E #8A4EB7 #A77AC9 #C4A5DA

Accessibility & contrast

On white

5.45
#8A4EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A4EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB7#FFFFFF#000000##FFFFFF
##8A4EB71.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967BA
Deuteranopia (green-blind)
#406AB4
Tritanopia (blue-blind)
#83627B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4eb7;
/* rgb */ color: rgb(138, 78, 183);
/* oklch */ color: oklch(54.1% 0.165 308.2);
Tailwind
colors: {
  custom: {
    50: '#af82cd',
    500: '#8a4eb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb7;
$custom-light: #af82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb7",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 274.286,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54148,
    "c": 0.16473,
    "h": 308.2
  },
  "luminance": 0.14271
}

Semantic roles & 50–950 ramp

primary
#8A4EB7
secondary
#ADC899
accent
#D2568B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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