#8A4CD0#8A4CD0

#8A4CD0 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.5% C 0.196 H 302.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD0
RGBrgb(138, 76, 208)
HSLhsl(268, 58%, 56%)
HSVhsv(268, 63%, 82%)
CMYKcmyk(33.7%, 63.5%, 0%, 18.4%)
CIE-LABlab(45.81, 51.58, -58.58)
CIE-LCHlch(45.81, 78.05, 311.36°)
OKLaboklab(55.52% 0.1038 -0.1663)
OKLCHoklch(55.52% 0.196 302)
XYZxyz(24.4482, 15.1262, 61.2939)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD0 #92D04C
analogous
#4C50D0 #8A4CD0 #CC4CD0
triadic
#8A4CD0 #D08A4C #4CD08A
tetradic
#8A4CD0 #D04C50 #92D04C #4CD0CC
square
#8A4CD0 #D04C50 #92D04C #4CD0CC
split-complementary
#8A4CD0 #D0CC4C #50D04C
monochromatic
#4E2280 #6B2EB0 #8A4CD0 #AA7CDD #C9ADE9

Accessibility & contrast

On white

5.22
#8A4CD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A4CD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD0
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD0#FFFFFF#000000##FFFFFF
##8A4CD01.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD4
Deuteranopia (green-blind)
#1C6CCD
Tritanopia (blue-blind)
#7C6987
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4cd0;
/* rgb */ color: rgb(138, 76, 208);
/* oklch */ color: oklch(55.5% 0.196 302.0);
Tailwind
colors: {
  custom: {
    50: '#b181df',
    500: '#8a4cd0',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd0;
$custom-light: #b181df;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd0",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 208
  },
  "hsl": {
    "h": 268.182,
    "s": 58.407,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55516,
    "c": 0.19604,
    "h": 302
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#8A4CD0
secondary
#BED7A0
accent
#E24699
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CD0

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

Preview Lab → · Contrast checker → · Palette generator →

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