#8B46CC#8B46CC

#8B46CC is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.6% C 0.200 H 304.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8B46CC
RGBrgb(139, 70, 204)
HSLhsl(271, 57%, 54%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(31.9%, 65.7%, 0%, 20%)
CIE-LABlab(44.56, 53.83, -58.28)
CIE-LCHlch(44.56, 79.33, 312.72°)
OKLaboklab(54.56% 0.1122 -0.1654)
OKLCHoklch(54.56% 0.2 304.1)
XYZxyz(23.7342, 14.2290, 58.6111)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B46CC #87CC46
analogous
#4846CC #8B46CC #CC46CA
triadic
#8B46CC #CC8B46 #46CC8B
tetradic
#8B46CC #CC4846 #87CC46 #46CACC
square
#8B46CC #CC4846 #87CC46 #46CACC
split-complementary
#8B46CC #CACC46 #46CC48
monochromatic
#4D2177 #6C2EA7 #8B46CC #A976D9 #C7A6E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B46CC#FFFFFF#000000##FFFFFF
##8B46CC1.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)
#0068D0
Deuteranopia (green-blind)
#1969C9
Tritanopia (blue-blind)
#7F6383
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b46cc;
/* rgb */ color: rgb(139, 70, 204);
/* oklch */ color: oklch(54.6% 0.200 304.1);
Tailwind
colors: {
  custom: {
    50: '#b27edc',
    500: '#8b46cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b46cc;
$custom-light: #b27edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b46cc",
  "rgb": {
    "r": 139,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 270.896,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54557,
    "c": 0.19986,
    "h": 304.1
  },
  "luminance": 0.14229
}

Semantic roles & 50–950 ramp

primary
#8B46CC
secondary
#B6D49A
accent
#E04892
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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