#8A4FD5#8A4FD5

#8A4FD5 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.3% C 0.198 H 300.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD5
RGBrgb(138, 79, 213)
HSLhsl(266, 61%, 57%)
HSVhsv(266, 63%, 84%)
CMYKcmyk(35.2%, 62.9%, 0%, 16.5%)
CIE-LABlab(46.71, 51.27, -59.98)
CIE-LCHlch(46.71, 78.91, 310.52°)
OKLaboklab(56.28% 0.1 -0.1705)
OKLCHoklch(56.28% 0.198 300.4)
XYZxyz(25.2845, 15.7991, 64.6553)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD5 #9AD54F
analogous
#4F57D5 #8A4FD5 #CD4FD5
triadic
#8A4FD5 #D58A4F #4FD58A
tetradic
#8A4FD5 #D54F57 #9AD54F #4FD5CD
square
#8A4FD5 #D54F57 #9AD54F #4FD5CD
split-complementary
#8A4FD5 #D5CD4F #57D54F
monochromatic
#4F2189 #6B2CBA #8A4FD5 #AB80E1 #CCB2ED

Accessibility & contrast

On white

5.05
#8A4FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A4FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD5#FFFFFF#000000##FFFFFF
##8A4FD51.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#186ED2
Tritanopia (blue-blind)
#7A6C8B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4fd5;
/* rgb */ color: rgb(138, 79, 213);
/* oklch */ color: oklch(56.3% 0.198 300.4);
Tailwind
colors: {
  custom: {
    50: '#b183e3',
    500: '#8a4fd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd5;
$custom-light: #b183e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd5",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 266.418,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56276,
    "c": 0.19763,
    "h": 300.4
  },
  "luminance": 0.15799
}

Semantic roles & 50–950 ramp

primary
#8A4FD5
secondary
#C3DBA5
accent
#E5439E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A4FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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