#8A4CD2#8A4CD2

#8A4CD2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.7% C 0.198 H 301.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD2
RGBrgb(138, 76, 210)
HSLhsl(268, 60%, 56%)
HSVhsv(268, 64%, 82%)
CMYKcmyk(34.3%, 63.8%, 0%, 17.6%)
CIE-LABlab(45.94, 52.07, -59.51)
CIE-LCHlch(45.94, 79.07, 311.19°)
OKLaboklab(55.66% 0.1036 -0.1691)
OKLCHoklch(55.66% 0.198 301.5)
XYZxyz(24.6958, 15.2252, 62.5980)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD2 #94D24C
analogous
#4C51D2 #8A4CD2 #CD4CD2
triadic
#8A4CD2 #D28A4C #4CD28A
tetradic
#8A4CD2 #D24C51 #94D24C #4CD2CD
square
#8A4CD2 #D24C51 #94D24C #4CD2CD
split-complementary
#8A4CD2 #D2CD4C #51D24C
monochromatic
#4E2183 #6B2DB4 #8A4CD2 #AA7DDE #CAAEEB

Accessibility & contrast

On white

5.19
#8A4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8A4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD2#FFFFFF#000000##FFFFFF
##8A4CD21.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#176CCF
Tritanopia (blue-blind)
#7B6988
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4cd2;
/* rgb */ color: rgb(138, 76, 210);
/* oklch */ color: oklch(55.7% 0.198 301.5);
Tailwind
colors: {
  custom: {
    50: '#b182e1',
    500: '#8a4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd2;
$custom-light: #b182e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd2",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 267.761,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55656,
    "c": 0.19829,
    "h": 301.5
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#8A4CD2
secondary
#BFD9A1
accent
#E3459A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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