#8A3EE3#8A3EE3

#8A3EE3 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.2% C 0.233 H 299.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A3EE3
RGBrgb(138, 62, 227)
HSLhsl(268, 75%, 57%)
HSVhsv(268, 73%, 89%)
CMYKcmyk(39.2%, 72.7%, 0%, 11%)
CIE-LABlab(44.79, 62.81, -71.08)
CIE-LCHlch(44.79, 94.85, 311.47°)
OKLaboklab(55.22% 0.1152 -0.203)
OKLCHoklch(55.22% 0.233 299.6)
XYZxyz(26.0655, 14.3943, 74.0633)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EE3 #97E33E
analogous
#3E45E3 #8A3EE3 #DC3EE3
triadic
#8A3EE3 #E38A3E #3EE38A
tetradic
#8A3EE3 #E33E45 #97E33E #3EE3DC
square
#8A3EE3 #E33E45 #97E33E #3EE3DC
split-complementary
#8A3EE3 #E3DC3E #45E33E
monochromatic
#4E1591 #6B1DC7 #8A3EE3 #AA73EB #CBA9F3

Accessibility & contrast

On white

5.41
#8A3EE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A3EE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EE3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EE3#FFFFFF#000000##FFFFFF
##8A3EE31.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE8
Deuteranopia (green-blind)
#0069E0
Tritanopia (blue-blind)
#75688D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a3ee3;
/* rgb */ color: rgb(138, 62, 227);
/* oklch */ color: oklch(55.2% 0.233 299.6);
Tailwind
colors: {
  custom: {
    50: '#b37aed',
    500: '#8a3ee3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ee3;
$custom-light: #b37aed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ee3",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 227
  },
  "hsl": {
    "h": 267.636,
    "s": 74.661,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55224,
    "c": 0.23344,
    "h": 299.6
  },
  "luminance": 0.14395
}

Semantic roles & 50–950 ramp

primary
#8A3EE3
secondary
#C1E09D
accent
#F1379B
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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