#8A3CE2#8A3CE2

#8A3CE2 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.9% C 0.235 H 300.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A3CE2
RGBrgb(138, 60, 226)
HSLhsl(268, 74%, 56%)
HSVhsv(268, 73%, 89%)
CMYKcmyk(38.9%, 73.5%, 0%, 11.4%)
CIE-LABlab(44.41, 63.43, -71.13)
CIE-LCHlch(44.41, 95.30, 311.73°)
OKLaboklab(54.93% 0.1172 -0.2031)
OKLCHoklch(54.93% 0.235 300)
XYZxyz(25.8211, 14.1257, 73.3029)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CE2 #94E23C
analogous
#3C41E2 #8A3CE2 #DD3CE2
triadic
#8A3CE2 #E28A3C #3CE28A
tetradic
#8A3CE2 #E23C41 #94E23C #3CE2DD
square
#8A3CE2 #E23C41 #94E23C #3CE2DD
split-complementary
#8A3CE2 #E2DD3C #41E23C
monochromatic
#4E158E #6B1DC4 #8A3CE2 #AA71EA #CAA7F2

Accessibility & contrast

On white

5.49
#8A3CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A3CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CE2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CE2#FFFFFF#000000##FFFFFF
##8A3CE21.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0068DF
Tritanopia (blue-blind)
#76678C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a3ce2;
/* rgb */ color: rgb(138, 60, 226);
/* oklch */ color: oklch(54.9% 0.235 300.0);
Tailwind
colors: {
  custom: {
    50: '#b379ec',
    500: '#8a3ce2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ce2;
$custom-light: #b379ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ce2",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 226
  },
  "hsl": {
    "h": 268.193,
    "s": 74.107,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54931,
    "c": 0.23454,
    "h": 300
  },
  "luminance": 0.14126
}

Semantic roles & 50–950 ramp

primary
#8A3CE2
secondary
#BFDF9B
accent
#F13799
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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