#8A3FD5#8A3FD5

#8A3FD5 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.218 H 302.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A3FD5
RGBrgb(138, 63, 213)
HSLhsl(270, 64%, 54%)
HSVhsv(270, 70%, 84%)
CMYKcmyk(35.2%, 70.4%, 0%, 16.5%)
CIE-LABlab(43.89, 59.05, -64.55)
CIE-LCHlch(43.89, 87.48, 312.45°)
OKLaboklab(54.25% 0.117 -0.1838)
OKLCHoklch(54.25% 0.218 302.5)
XYZxyz(24.2661, 13.7623, 64.3159)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FD5 #8AD53F
analogous
#3F3FD5 #8A3FD5 #D53FD5
triadic
#8A3FD5 #D58A3F #3FD58A
tetradic
#8A3FD5 #D53F3F #8AD53F #3FD5D5
square
#8A3FD5 #D53F3F #8AD53F #3FD5D5
split-complementary
#8A3FD5 #D5D53F #3FD53F
monochromatic
#4D1C7E #6B27B0 #8A3FD5 #A971E0 #C7A3EB

Accessibility & contrast

On white

5.60
#8A3FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8A3FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FD5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FD5#FFFFFF#000000##FFFFFF
##8A3FD51.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#7A6386
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3fd5;
/* rgb */ color: rgb(138, 63, 213);
/* oklch */ color: oklch(54.3% 0.218 302.5);
Tailwind
colors: {
  custom: {
    50: '#b27ae3',
    500: '#8a3fd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fd5;
$custom-light: #b27ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fd5",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 213
  },
  "hsl": {
    "h": 270,
    "s": 64.103,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54253,
    "c": 0.21789,
    "h": 302.5
  },
  "luminance": 0.13762
}

Semantic roles & 50–950 ramp

primary
#8A3FD5
secondary
#B8D898
accent
#E74194
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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