#8A46B7#8A46B7

#8A46B7 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.177 H 309.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A46B7
RGBrgb(138, 70, 183)
HSLhsl(276, 45%, 50%)
HSVhsv(276, 62%, 72%)
CMYKcmyk(24.6%, 61.7%, 0%, 28.2%)
CIE-LABlab(43.07, 48.71, -48.47)
CIE-LCHlch(43.07, 68.72, 315.14°)
OKLaboklab(53.02% 0.1121 -0.1366)
OKLCHoklch(53.02% 0.177 309.4)
XYZxyz(21.2170, 13.2029, 46.2213)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B7 #73B746
analogous
#5146B7 #8A46B7 #B746AC
triadic
#8A46B7 #B78A46 #46B78A
tetradic
#8A46B7 #B75146 #73B746 #46ACB7
square
#8A46B7 #B75146 #73B746 #46ACB7
split-complementary
#8A46B7 #ACB746 #46B751
monochromatic
#47245E #69358B #8A46B7 #A671C9 #C29EDA

Accessibility & contrast

On white

5.77
#8A46B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A46B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B7#FFFFFF#000000##FFFFFF
##8A46B71.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1263BB
Deuteranopia (green-blind)
#3767B4
Tritanopia (blue-blind)
#845C78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a46b7;
/* rgb */ color: rgb(138, 70, 183);
/* oklch */ color: oklch(53.0% 0.177 309.4);
Tailwind
colors: {
  custom: {
    50: '#af7dcd',
    500: '#8a46b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b7;
$custom-light: #af7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b7",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 183
  },
  "hsl": {
    "h": 276.106,
    "s": 44.664,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53016,
    "c": 0.17675,
    "h": 309.4
  },
  "luminance": 0.13202
}

Semantic roles & 50–950 ramp

primary
#8A46B7
secondary
#A7C693
accent
#D45387
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46B7

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

Preview Lab → · Contrast checker → · Palette generator →

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