#8A4BD4#8A4BD4

#8A4BD4 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.202 H 301.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A4BD4
RGBrgb(138, 75, 212)
HSLhsl(268, 61%, 56%)
HSVhsv(268, 65%, 83%)
CMYKcmyk(34.9%, 64.6%, 0%, 16.9%)
CIE-LABlab(45.89, 53.06, -60.73)
CIE-LCHlch(45.89, 80.65, 311.14°)
OKLaboklab(55.66% 0.1045 -0.1727)
OKLCHoklch(55.66% 0.202 301.2)
XYZxyz(24.8781, 15.1888, 63.8956)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BD4 #95D44B
analogous
#4B51D4 #8A4BD4 #CF4BD4
triadic
#8A4BD4 #D48A4B #4BD48A
tetradic
#8A4BD4 #D44B51 #95D44B #4BD4CF
square
#8A4BD4 #D44B51 #95D44B #4BD4CF
split-complementary
#8A4BD4 #D4CF4B #51D44B
monochromatic
#4E2085 #6B2CB6 #8A4BD4 #AA7CE0 #CAAEEC

Accessibility & contrast

On white

5.20
#8A4BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4BD4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BD4#FFFFFF#000000##FFFFFF
##8A4BD41.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#0C6CD1
Tritanopia (blue-blind)
#7A6A89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4bd4;
/* rgb */ color: rgb(138, 75, 212);
/* oklch */ color: oklch(55.7% 0.202 301.2);
Tailwind
colors: {
  custom: {
    50: '#b181e2',
    500: '#8a4bd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bd4;
$custom-light: #b181e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bd4",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 267.591,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55663,
    "c": 0.20185,
    "h": 301.2
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#8A4BD4
secondary
#C0DAA1
accent
#E5439A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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