#8A46B8#8A46B8

#8A46B8 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.178 H 309.1°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A46B8
RGBrgb(138, 70, 184)
HSLhsl(276, 45%, 50%)
HSVhsv(276, 62%, 72%)
CMYKcmyk(25%, 62%, 0%, 27.8%)
CIE-LABlab(43.13, 48.94, -48.96)
CIE-LCHlch(43.13, 69.22, 314.99°)
OKLaboklab(53.08% 0.1121 -0.1381)
OKLCHoklch(53.08% 0.178 309.1)
XYZxyz(21.3214, 13.2446, 46.7714)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B8 #74B846
analogous
#5146B8 #8A46B8 #B846AD
triadic
#8A46B8 #B88A46 #46B88A
tetradic
#8A46B8 #B85146 #74B846 #46ADB8
square
#8A46B8 #B85146 #74B846 #46ADB8
split-complementary
#8A46B8 #ADB846 #46B851
monochromatic
#47245F #69358C #8A46B8 #A672C9 #C29EDA

Accessibility & contrast

On white

5.76
#8A46B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A46B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B8#FFFFFF#000000##FFFFFF
##8A46B81.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F63BC
Deuteranopia (green-blind)
#3667B5
Tritanopia (blue-blind)
#835C78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a46b8;
/* rgb */ color: rgb(138, 70, 184);
/* oklch */ color: oklch(53.1% 0.178 309.1);
Tailwind
colors: {
  custom: {
    50: '#af7dce',
    500: '#8a46b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b8;
$custom-light: #af7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b8",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 184
  },
  "hsl": {
    "h": 275.789,
    "s": 44.882,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53081,
    "c": 0.17784,
    "h": 309.1
  },
  "luminance": 0.13244
}

Semantic roles & 50–950 ramp

primary
#8A46B8
secondary
#A8C793
accent
#D55387
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A46B8

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

Preview Lab → · Contrast checker → · Palette generator →

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