#8A4FC5#8A4FC5

#8A4FC5 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.2% C 0.179 H 304.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A4FC5
RGBrgb(138, 79, 197)
HSLhsl(270, 50%, 54%)
HSVhsv(270, 60%, 77%)
CMYKcmyk(29.9%, 59.9%, 0%, 22.7%)
CIE-LABlab(45.67, 47.34, -52.45)
CIE-LCHlch(45.67, 70.66, 312.07°)
OKLaboklab(55.19% 0.1007 -0.1483)
OKLCHoklch(55.19% 0.179 304.2)
XYZxyz(23.3530, 15.0265, 54.4826)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FC5 #8AC54F
analogous
#4F4FC5 #8A4FC5 #C54FC5
triadic
#8A4FC5 #C58A4F #4FC58A
tetradic
#8A4FC5 #C54F4F #8AC54F #4FC5C5
square
#8A4FC5 #C54F4F #8AC54F #4FC5C5
split-complementary
#8A4FC5 #C5C54F #4FC54F
monochromatic
#4D2674 #6B35A2 #8A4FC5 #A97DD4 #C7ABE3

Accessibility & contrast

On white

5.24
#8A4FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A4FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FC5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FC5#FFFFFF#000000##FFFFFF
##8A4FC51.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136BC9
Deuteranopia (green-blind)
#336CC2
Tritanopia (blue-blind)
#7F6782
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4fc5;
/* rgb */ color: rgb(138, 79, 197);
/* oklch */ color: oklch(55.2% 0.179 304.2);
Tailwind
colors: {
  custom: {
    50: '#b083d7',
    500: '#8a4fc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fc5;
$custom-light: #b083d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fc5",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 270,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55189,
    "c": 0.17931,
    "h": 304.2
  },
  "luminance": 0.15026
}

Semantic roles & 50–950 ramp

primary
#8A4FC5
secondary
#B8D19F
accent
#DA4E94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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