#8A46CE#8A46CE

#8A46CE is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.6% C 0.202 H 303.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A46CE
RGBrgb(138, 70, 206)
HSLhsl(270, 58%, 54%)
HSVhsv(270, 66%, 81%)
CMYKcmyk(33%, 66%, 0%, 19.2%)
CIE-LABlab(44.57, 54.09, -59.41)
CIE-LCHlch(44.57, 80.35, 312.32°)
OKLaboklab(54.58% 0.1106 -0.1688)
OKLCHoklch(54.58% 0.202 303.2)
XYZxyz(23.8094, 14.2398, 59.8748)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46CE #8ACE46
analogous
#4646CE #8A46CE #CE46CE
triadic
#8A46CE #CE8A46 #46CE8A
tetradic
#8A46CE #CE4646 #8ACE46 #46CECE
square
#8A46CE #CE4646 #8ACE46 #46CECE
split-complementary
#8A46CE #CECE46 #46CE46
monochromatic
#4D2079 #6B2DAA #8A46CE #A976DB #C7A7E8

Accessibility & contrast

On white

5.46
#8A46CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A46CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46CE
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46CE#FFFFFF#000000##FFFFFF
##8A46CE1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#1069CB
Tritanopia (blue-blind)
#7D6484
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a46ce;
/* rgb */ color: rgb(138, 70, 206);
/* oklch */ color: oklch(54.6% 0.202 303.2);
Tailwind
colors: {
  custom: {
    50: '#b17ede',
    500: '#8a46ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a46ce;
$custom-light: #b17ede;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46ce",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 206
  },
  "hsl": {
    "h": 270,
    "s": 58.12,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54585,
    "c": 0.2018,
    "h": 303.2
  },
  "luminance": 0.1424
}

Semantic roles & 50–950 ramp

primary
#8A46CE
secondary
#B8D59B
accent
#E14694
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46CE

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

Preview Lab → · Contrast checker → · Palette generator →

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