#8A4FC7#8A4FC7

#8A4FC7 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.182 H 303.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A4FC7
RGBrgb(138, 79, 199)
HSLhsl(270, 52%, 55%)
HSVhsv(270, 60%, 78%)
CMYKcmyk(30.7%, 60.3%, 0%, 22%)
CIE-LABlab(45.80, 47.83, -53.41)
CIE-LCHlch(45.80, 71.69, 311.85°)
OKLaboklab(55.32% 0.1007 -0.1511)
OKLCHoklch(55.32% 0.182 303.7)
XYZxyz(23.5837, 15.1188, 55.6975)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FC7 #8CC74F
analogous
#4F50C7 #8A4FC7 #C64FC7
triadic
#8A4FC7 #C78A4F #4FC78A
tetradic
#8A4FC7 #C74F50 #8CC74F #4FC7C6
square
#8A4FC7 #C74F50 #8CC74F #4FC7C6
split-complementary
#8A4FC7 #C7C64F #50C74F
monochromatic
#4D2676 #6B34A4 #8A4FC7 #A97DD6 #C8ACE5

Accessibility & contrast

On white

5.22
#8A4FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4FC7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FC7#FFFFFF#000000##FFFFFF
##8A4FC71.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6BCB
Deuteranopia (green-blind)
#316CC4
Tritanopia (blue-blind)
#7F6883
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4fc7;
/* rgb */ color: rgb(138, 79, 199);
/* oklch */ color: oklch(55.3% 0.182 303.7);
Tailwind
colors: {
  custom: {
    50: '#b083d9',
    500: '#8a4fc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fc7;
$custom-light: #b083d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fc7",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 269.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55321,
    "c": 0.18161,
    "h": 303.7
  },
  "luminance": 0.15119
}

Semantic roles & 50–950 ramp

primary
#8A4FC7
secondary
#B9D2A0
accent
#DB4D95
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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