#8A3FD8#8A3FD8

#8A3FD8 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.221 H 301.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A3FD8
RGBrgb(138, 63, 216)
HSLhsl(269, 66%, 55%)
HSVhsv(269, 71%, 85%)
CMYKcmyk(36.1%, 70.8%, 0%, 15.3%)
CIE-LABlab(44.11, 59.75, -65.91)
CIE-LCHlch(44.11, 88.96, 312.20°)
OKLaboklab(54.48% 0.1164 -0.1878)
OKLCHoklch(54.48% 0.221 301.8)
XYZxyz(24.6504, 13.9161, 66.3398)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FD8 #8DD83F
analogous
#3F40D8 #8A3FD8 #D73FD8
triadic
#8A3FD8 #D88A3F #3FD88A
tetradic
#8A3FD8 #D83F40 #8DD83F #3FD8D7
square
#8A3FD8 #D83F40 #8DD83F #3FD8D7
split-complementary
#8A3FD8 #D8D73F #40D83F
monochromatic
#4D1A82 #6B25B5 #8A3FD8 #A972E2 #C8A5ED

Accessibility & contrast

On white

5.55
#8A3FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A3FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FD8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FD8#FFFFFF#000000##FFFFFF
##8A3FD81.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#796488
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3fd8;
/* rgb */ color: rgb(138, 63, 216);
/* oklch */ color: oklch(54.5% 0.221 301.8);
Tailwind
colors: {
  custom: {
    50: '#b27ae5',
    500: '#8a3fd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fd8;
$custom-light: #b27ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fd8",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 216
  },
  "hsl": {
    "h": 269.412,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5448,
    "c": 0.22099,
    "h": 301.8
  },
  "luminance": 0.13916
}

Semantic roles & 50–950 ramp

primary
#8A3FD8
secondary
#BADA99
accent
#E93F96
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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