#8A3EE4#8A3EE4

#8A3EE4 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.3% C 0.234 H 299.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A3EE4
RGBrgb(138, 62, 228)
HSLhsl(267, 75%, 57%)
HSVhsv(267, 73%, 89%)
CMYKcmyk(39.5%, 72.8%, 0%, 10.6%)
CIE-LABlab(44.87, 63.05, -71.52)
CIE-LCHlch(44.87, 95.34, 311.40°)
OKLaboklab(55.3% 0.115 -0.2043)
OKLCHoklch(55.3% 0.234 299.4)
XYZxyz(26.2039, 14.4496, 74.7922)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EE4 #98E43E
analogous
#3E45E4 #8A3EE4 #DD3EE4
triadic
#8A3EE4 #E48A3E #3EE48A
tetradic
#8A3EE4 #E43E45 #98E43E #3EE4DD
square
#8A3EE4 #E43E45 #98E43E #3EE4DD
split-complementary
#8A3EE4 #E4DD3E #45E43E
monochromatic
#4E1593 #6B1CC9 #8A3EE4 #AB74EC #CBA9F3

Accessibility & contrast

On white

5.40
#8A3EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A3EE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EE4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EE4#FFFFFF#000000##FFFFFF
##8A3EE41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE9
Deuteranopia (green-blind)
#0069E1
Tritanopia (blue-blind)
#75688E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a3ee4;
/* rgb */ color: rgb(138, 62, 228);
/* oklch */ color: oklch(55.3% 0.234 299.4);
Tailwind
colors: {
  custom: {
    50: '#b37aee',
    500: '#8a3ee4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ee4;
$custom-light: #b37aee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ee4",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 228
  },
  "hsl": {
    "h": 267.47,
    "s": 75.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55303,
    "c": 0.23447,
    "h": 299.4
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#8A3EE4
secondary
#C2E19D
accent
#F2369C
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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