#8A4FD8#8A4FD8

#8A4FD8 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.201 H 299.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD8
RGBrgb(138, 79, 216)
HSLhsl(266, 64%, 58%)
HSVhsv(266, 63%, 85%)
CMYKcmyk(36.1%, 63.4%, 0%, 15.3%)
CIE-LABlab(46.91, 52.02, -61.37)
CIE-LCHlch(46.91, 80.45, 310.28°)
OKLaboklab(56.49% 0.0998 -0.1745)
OKLCHoklch(56.49% 0.201 299.7)
XYZxyz(25.6688, 15.9529, 66.6793)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD8 #9DD84F
analogous
#4F59D8 #8A4FD8 #CE4FD8
triadic
#8A4FD8 #D88A4F #4FD88A
tetradic
#8A4FD8 #D84F59 #9DD84F #4FD8CE
square
#8A4FD8 #D84F59 #9DD84F #4FD8CE
split-complementary
#8A4FD8 #D8CE4F #59D84F
monochromatic
#4F1F8D #6B2ABF #8A4FD8 #AB81E3 #CDB3EE

Accessibility & contrast

On white

5.01
#8A4FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A4FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD8#FFFFFF#000000##FFFFFF
##8A4FD81.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#0D6ED5
Tritanopia (blue-blind)
#796D8C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4fd8;
/* rgb */ color: rgb(138, 79, 216);
/* oklch */ color: oklch(56.5% 0.201 299.7);
Tailwind
colors: {
  custom: {
    50: '#b183e5',
    500: '#8a4fd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd8;
$custom-light: #b183e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd8",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 265.839,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56487,
    "c": 0.20104,
    "h": 299.7
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

primary
#8A4FD8
secondary
#C5DDA6
accent
#E7419F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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