#8A4FC4#8A4FC4

#8A4FC4 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.178 H 304.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A4FC4
RGBrgb(138, 79, 196)
HSLhsl(270, 50%, 54%)
HSVhsv(270, 60%, 77%)
CMYKcmyk(29.6%, 59.7%, 0%, 23.1%)
CIE-LABlab(45.61, 47.10, -51.97)
CIE-LCHlch(45.61, 70.14, 312.18°)
OKLaboklab(55.12% 0.1007 -0.1469)
OKLCHoklch(55.12% 0.178 304.4)
XYZxyz(23.2388, 14.9809, 53.8812)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FC4 #89C44F
analogous
#504FC4 #8A4FC4 #C44FC4
triadic
#8A4FC4 #C48A4F #4FC48A
tetradic
#8A4FC4 #C4504F #89C44F #4FC4C4
square
#8A4FC4 #C4504F #89C44F #4FC4C4
split-complementary
#8A4FC4 #C4C44F #4FC450
monochromatic
#4D2672 #6B36A0 #8A4FC4 #A87DD3 #C7ABE3

Accessibility & contrast

On white

5.25
#8A4FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A4FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FC4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FC4#FFFFFF#000000##FFFFFF
##8A4FC41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166AC8
Deuteranopia (green-blind)
#346CC1
Tritanopia (blue-blind)
#806782
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4fc4;
/* rgb */ color: rgb(138, 79, 196);
/* oklch */ color: oklch(55.1% 0.178 304.4);
Tailwind
colors: {
  custom: {
    50: '#b083d6',
    500: '#8a4fc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fc4;
$custom-light: #b083d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fc4",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 270.256,
    "s": 49.787,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55124,
    "c": 0.17817,
    "h": 304.4
  },
  "luminance": 0.14981
}

Semantic roles & 50–950 ramp

primary
#8A4FC4
secondary
#B7D09E
accent
#D94E93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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