#8A4FD4#8A4FD4

#8A4FD4 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.2% C 0.196 H 300.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A4FD4
RGBrgb(138, 79, 212)
HSLhsl(267, 61%, 57%)
HSVhsv(267, 63%, 83%)
CMYKcmyk(34.9%, 62.7%, 0%, 16.9%)
CIE-LABlab(46.64, 51.02, -59.52)
CIE-LCHlch(46.64, 78.39, 310.60°)
OKLaboklab(56.21% 0.1001 -0.1691)
OKLCHoklch(56.21% 0.196 300.6)
XYZxyz(25.1580, 15.7485, 63.9889)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FD4 #99D44F
analogous
#4F56D4 #8A4FD4 #CD4FD4
triadic
#8A4FD4 #D48A4F #4FD48A
tetradic
#8A4FD4 #D44F56 #99D44F #4FD4CD
square
#8A4FD4 #D44F56 #99D44F #4FD4CD
split-complementary
#8A4FD4 #D4CD4F #56D44F
monochromatic
#4F2187 #6B2DB9 #8A4FD4 #AB80E0 #CBB1EC

Accessibility & contrast

On white

5.06
#8A4FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A4FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FD4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FD4#FFFFFF#000000##FFFFFF
##8A4FD41.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#1A6ED1
Tritanopia (blue-blind)
#7A6C8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4fd4;
/* rgb */ color: rgb(138, 79, 212);
/* oklch */ color: oklch(56.2% 0.196 300.6);
Tailwind
colors: {
  custom: {
    50: '#b183e2',
    500: '#8a4fd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fd4;
$custom-light: #b183e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fd4",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 266.617,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56206,
    "c": 0.19649,
    "h": 300.6
  },
  "luminance": 0.15749
}

Semantic roles & 50–950 ramp

primary
#8A4FD4
secondary
#C2DAA4
accent
#E4449D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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