#8A4FD7#8A4FD7

#8A4FD7 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.4% C 0.200 H 300.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD7
RGBrgb(138, 79, 215)
HSLhsl(266, 63%, 58%)
HSVhsv(266, 63%, 84%)
CMYKcmyk(35.8%, 63.3%, 0%, 15.7%)
CIE-LABlab(46.84, 51.77, -60.91)
CIE-LCHlch(46.84, 79.94, 310.36°)
OKLaboklab(56.42% 0.0998 -0.1732)
OKLCHoklch(56.42% 0.2 300)
XYZxyz(25.5400, 15.9013, 66.0005)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD7 #9CD74F
analogous
#4F58D7 #8A4FD7 #CE4FD7
triadic
#8A4FD7 #D78A4F #4FD78A
tetradic
#8A4FD7 #D74F58 #9CD74F #4FD7CE
square
#8A4FD7 #D74F58 #9CD74F #4FD7CE
split-complementary
#8A4FD7 #D7CE4F #58D74F
monochromatic
#4F208C #6B2BBE #8A4FD7 #AB81E2 #CCB3EE

Accessibility & contrast

On white

5.02
#8A4FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A4FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD7#FFFFFF#000000##FFFFFF
##8A4FD71.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#116ED4
Tritanopia (blue-blind)
#796D8C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4fd7;
/* rgb */ color: rgb(138, 79, 215);
/* oklch */ color: oklch(56.4% 0.200 300.0);
Tailwind
colors: {
  custom: {
    50: '#b183e4',
    500: '#8a4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd7;
$custom-light: #b183e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd7",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 266.029,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56416,
    "c": 0.19991,
    "h": 300
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#8A4FD7
secondary
#C5DCA6
accent
#E6429F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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