#8A4BD2#8A4BD2

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

Color values

HEX#8A4BD2
RGBrgb(138, 75, 210)
HSLhsl(268, 60%, 56%)
HSVhsv(268, 64%, 82%)
CMYKcmyk(34.3%, 64.3%, 0%, 17.6%)
CIE-LABlab(45.76, 52.57, -59.81)
CIE-LCHlch(45.76, 79.63, 311.32°)
OKLaboklab(55.52% 0.1047 -0.1699)
OKLCHoklch(55.52% 0.2 301.6)
XYZxyz(24.6274, 15.0885, 62.5752)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BD2 #93D24B
analogous
#4B4FD2 #8A4BD2 #CD4BD2
triadic
#8A4BD2 #D28A4B #4BD28A
tetradic
#8A4BD2 #D24B4F #93D24B #4BD2CD
square
#8A4BD2 #D24B4F #93D24B #4BD2CD
split-complementary
#8A4BD2 #D2CD4B #4FD24B
monochromatic
#4E2182 #6B2DB3 #8A4BD2 #AA7CDE #CAADEA

Accessibility & contrast

On white

5.23
#8A4BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8A4BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BD2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BD2#FFFFFF#000000##FFFFFF
##8A4BD21.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#146CCF
Tritanopia (blue-blind)
#7B6988
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4bd2;
/* rgb */ color: rgb(138, 75, 210);
/* oklch */ color: oklch(55.5% 0.200 301.6);
Tailwind
colors: {
  custom: {
    50: '#b181e1',
    500: '#8a4bd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bd2;
$custom-light: #b181e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bd2",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 268,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55521,
    "c": 0.19962,
    "h": 301.6
  },
  "luminance": 0.15089
}

Semantic roles & 50–950 ramp

primary
#8A4BD2
secondary
#BED8A0
accent
#E34599
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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