#8A4FC2#8A4FC2

#8A4FC2 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.0% C 0.176 H 305.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A4FC2
RGBrgb(138, 79, 194)
HSLhsl(271, 49%, 54%)
HSVhsv(271, 59%, 76%)
CMYKcmyk(28.9%, 59.3%, 0%, 23.9%)
CIE-LABlab(45.48, 46.62, -51.01)
CIE-LCHlch(45.48, 69.11, 312.42°)
OKLaboklab(54.99% 0.1008 -0.1441)
OKLCHoklch(54.99% 0.176 305)
XYZxyz(23.0127, 14.8904, 52.6903)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FC2 #87C24F
analogous
#504FC2 #8A4FC2 #C24FC0
triadic
#8A4FC2 #C28A4F #4FC28A
tetradic
#8A4FC2 #C2504F #87C24F #4FC0C2
square
#8A4FC2 #C2504F #87C24F #4FC0C2
split-complementary
#8A4FC2 #C0C24F #4FC250
monochromatic
#4C2770 #6B379D #8A4FC2 #A87CD2 #C6AAE2

Accessibility & contrast

On white

5.28
#8A4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A4FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FC2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FC2#FFFFFF#000000##FFFFFF
##8A4FC21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6AC6
Deuteranopia (green-blind)
#376CBF
Tritanopia (blue-blind)
#806681
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4fc2;
/* rgb */ color: rgb(138, 79, 194);
/* oklch */ color: oklch(55.0% 0.176 305.0);
Tailwind
colors: {
  custom: {
    50: '#b083d5',
    500: '#8a4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fc2;
$custom-light: #b083d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fc2",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 270.783,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54993,
    "c": 0.17586,
    "h": 305
  },
  "luminance": 0.1489
}

Semantic roles & 50–950 ramp

primary
#8A4FC2
secondary
#B6CF9E
accent
#D85092
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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