#8A46C8#8A46C8

#8A46C8 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.2% C 0.195 H 304.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A46C8
RGBrgb(138, 70, 200)
HSLhsl(271, 54%, 53%)
HSVhsv(271, 65%, 78%)
CMYKcmyk(31%, 65%, 0%, 21.6%)
CIE-LABlab(44.17, 52.66, -56.61)
CIE-LCHlch(44.17, 77.32, 312.93°)
OKLaboklab(54.16% 0.1112 -0.1605)
OKLCHoklch(54.16% 0.195 304.7)
XYZxyz(23.0944, 13.9538, 56.1091)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46C8 #84C846
analogous
#4946C8 #8A46C8 #C846C5
triadic
#8A46C8 #C88A46 #46C88A
tetradic
#8A46C8 #C84946 #84C846 #46C5C8
square
#8A46C8 #C84946 #84C846 #46C5C8
split-complementary
#8A46C8 #C5C846 #46C849
monochromatic
#4C2272 #6B30A1 #8A46C8 #A875D6 #C6A4E4

Accessibility & contrast

On white

5.54
#8A46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A46C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46C8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46C8#FFFFFF#000000##FFFFFF
##8A46C81.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#2068C5
Tritanopia (blue-blind)
#7F6281
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a46c8;
/* rgb */ color: rgb(138, 70, 200);
/* oklch */ color: oklch(54.2% 0.195 304.7);
Tailwind
colors: {
  custom: {
    50: '#b17ed9',
    500: '#8a46c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a46c8;
$custom-light: #b17ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46c8",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 271.385,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54162,
    "c": 0.19529,
    "h": 304.7
  },
  "luminance": 0.13954
}

Semantic roles & 50–950 ramp

primary
#8A46C8
secondary
#B4D199
accent
#DE4A91
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46C8

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

Preview Lab → · Contrast checker → · Palette generator →

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