#8A3FD2#8A3FD2

#8A3FD2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.215 H 303.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A3FD2
RGBrgb(138, 63, 210)
HSLhsl(271, 62%, 54%)
HSVhsv(271, 70%, 82%)
CMYKcmyk(34.3%, 70%, 0%, 17.6%)
CIE-LABlab(43.67, 58.34, -63.18)
CIE-LCHlch(43.67, 86.00, 312.72°)
OKLaboklab(54.03% 0.1174 -0.1798)
OKLCHoklch(54.03% 0.215 303.1)
XYZxyz(23.8889, 13.6114, 62.3290)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FD2 #87D23F
analogous
#403FD2 #8A3FD2 #D23FD0
triadic
#8A3FD2 #D28A3F #3FD28A
tetradic
#8A3FD2 #D2403F #87D23F #3FD0D2
square
#8A3FD2 #D2403F #87D23F #3FD0D2
split-complementary
#8A3FD2 #D0D23F #3FD240
monochromatic
#4C1D7A #6B28AC #8A3FD2 #A871DE #C6A2E9

Accessibility & contrast

On white

5.64
#8A3FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A3FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FD2
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FD2#FFFFFF#000000##FFFFFF
##8A3FD21.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#7C6284
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3fd2;
/* rgb */ color: rgb(138, 63, 210);
/* oklch */ color: oklch(54.0% 0.215 303.1);
Tailwind
colors: {
  custom: {
    50: '#b27ae1',
    500: '#8a3fd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fd2;
$custom-light: #b27ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fd2",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 270.612,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54028,
    "c": 0.21477,
    "h": 303.1
  },
  "luminance": 0.13611
}

Semantic roles & 50–950 ramp

primary
#8A3FD2
secondary
#B6D697
accent
#E54392
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A3FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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