#8A4FA8#8A4FA8

#8A4FA8 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.146 H 313.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A4FA8
RGBrgb(138, 79, 168)
HSLhsl(280, 36%, 48%)
HSVhsv(280, 53%, 66%)
CMYKcmyk(17.9%, 53%, 0%, 34.1%)
CIE-LABlab(43.98, 40.56, -38.18)
CIE-LCHlch(43.98, 55.71, 316.73°)
OKLaboklab(53.4% 0.0997 -0.1066)
OKLCHoklch(53.4% 0.146 313.1)
XYZxyz(20.3439, 13.8229, 38.6346)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FA8 #6DA84F
analogous
#5D4FA8 #8A4FA8 #A84F99
triadic
#8A4FA8 #A88A4F #4FA88A
tetradic
#8A4FA8 #A85D4F #6DA84F #4F99A8
square
#8A4FA8 #A85D4F #6DA84F #4F99A8
split-complementary
#8A4FA8 #99A84F #4FA85D
monochromatic
#462855 #683B7E #8A4FA8 #A676BE #C19FD2

Accessibility & contrast

On white

5.58
#8A4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A4FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FA8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FA8#FFFFFF#000000##FFFFFF
##8A4FA81.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AB
Deuteranopia (green-blind)
#4C69A6
Tritanopia (blue-blind)
#875D74
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4fa8;
/* rgb */ color: rgb(138, 79, 168);
/* oklch */ color: oklch(53.4% 0.146 313.1);
Tailwind
colors: {
  custom: {
    50: '#ae82c2',
    500: '#8a4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fa8;
$custom-light: #ae82c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fa8",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 279.775,
    "s": 36.032,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53402,
    "c": 0.14596,
    "h": 313.1
  },
  "luminance": 0.13822
}

Semantic roles & 50–950 ramp

primary
#8A4FA8
secondary
#A2BF94
accent
#CC5C82
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B12
muted
#807C81

Preview Lab

Preview with #8A4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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