#8A3FD4#8A3FD4

#8A3FD4 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.2% C 0.217 H 302.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A3FD4
RGBrgb(138, 63, 212)
HSLhsl(270, 63%, 54%)
HSVhsv(270, 70%, 83%)
CMYKcmyk(34.9%, 70.3%, 0%, 16.9%)
CIE-LABlab(43.82, 58.81, -64.10)
CIE-LCHlch(43.82, 86.99, 312.54°)
OKLaboklab(54.18% 0.1171 -0.1825)
OKLCHoklch(54.18% 0.217 302.7)
XYZxyz(24.1396, 13.7117, 63.6495)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FD4 #89D43F
analogous
#403FD4 #8A3FD4 #D43FD4
triadic
#8A3FD4 #D48A3F #3FD48A
tetradic
#8A3FD4 #D4403F #89D43F #3FD4D4
square
#8A3FD4 #D4403F #89D43F #3FD4D4
split-complementary
#8A3FD4 #D4D43F #3FD440
monochromatic
#4D1C7D #6B27AF #8A3FD4 #A871DF #C7A3EA

Accessibility & contrast

On white

5.61
#8A3FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A3FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FD4
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FD4#FFFFFF#000000##FFFFFF
##8A3FD41.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#7B6385
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3fd4;
/* rgb */ color: rgb(138, 63, 212);
/* oklch */ color: oklch(54.2% 0.217 302.7);
Tailwind
colors: {
  custom: {
    50: '#b27ae2',
    500: '#8a3fd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fd4;
$custom-light: #b27ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fd4",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 212
  },
  "hsl": {
    "h": 270.201,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54178,
    "c": 0.21685,
    "h": 302.7
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

primary
#8A3FD4
secondary
#B7D798
accent
#E64193
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A3FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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