#8A4FD6#8A4FD6

#8A4FD6 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.199 H 300.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD6
RGBrgb(138, 79, 214)
HSLhsl(266, 62%, 57%)
HSVhsv(266, 63%, 84%)
CMYKcmyk(35.5%, 63.1%, 0%, 16.1%)
CIE-LABlab(46.78, 51.52, -60.45)
CIE-LCHlch(46.78, 79.42, 310.44°)
OKLaboklab(56.35% 0.0999 -0.1718)
OKLCHoklch(56.35% 0.199 300.2)
XYZxyz(25.4119, 15.8501, 65.3259)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD6 #9BD64F
analogous
#4F58D6 #8A4FD6 #CD4FD6
triadic
#8A4FD6 #D68A4F #4FD68A
tetradic
#8A4FD6 #D64F58 #9BD64F #4FD6CD
square
#8A4FD6 #D64F58 #9BD64F #4FD6CD
split-complementary
#8A4FD6 #D6CD4F #58D64F
monochromatic
#4F208A #6B2CBC #8A4FD6 #AB81E2 #CCB2ED

Accessibility & contrast

On white

5.04
#8A4FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A4FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD6#FFFFFF#000000##FFFFFF
##8A4FD61.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#156ED3
Tritanopia (blue-blind)
#796D8B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4fd6;
/* rgb */ color: rgb(138, 79, 214);
/* oklch */ color: oklch(56.3% 0.199 300.2);
Tailwind
colors: {
  custom: {
    50: '#b183e3',
    500: '#8a4fd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd6;
$custom-light: #b183e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd6",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 214
  },
  "hsl": {
    "h": 266.222,
    "s": 62.212,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56346,
    "c": 0.19877,
    "h": 300.2
  },
  "luminance": 0.1585
}

Semantic roles & 50–950 ramp

primary
#8A4FD6
secondary
#C4DCA5
accent
#E5439E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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