#8A46D1#8A46D1

#8A46D1 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.8% C 0.205 H 302.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A46D1
RGBrgb(138, 70, 209)
HSLhsl(269, 60%, 55%)
HSVhsv(269, 67%, 82%)
CMYKcmyk(34%, 66.5%, 0%, 18%)
CIE-LABlab(44.78, 54.81, -60.81)
CIE-LCHlch(44.78, 81.86, 312.03°)
OKLaboklab(54.8% 0.1103 -0.1729)
OKLCHoklch(54.8% 0.205 302.5)
XYZxyz(24.1773, 14.3870, 61.8125)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46D1 #8DD146
analogous
#4647D1 #8A46D1 #D046D1
triadic
#8A46D1 #D18A46 #46D18A
tetradic
#8A46D1 #D14647 #8DD146 #46D1D0
square
#8A46D1 #D14647 #8DD146 #46D1D0
split-complementary
#8A46D1 #D1D046 #47D146
monochromatic
#4D1F7D #6B2BAE #8A46D1 #A977DD #C8A8E9

Accessibility & contrast

On white

5.42
#8A46D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A46D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46D1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46D1#FFFFFF#000000##FFFFFF
##8A46D11.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#0269CE
Tritanopia (blue-blind)
#7C6586
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a46d1;
/* rgb */ color: rgb(138, 70, 209);
/* oklch */ color: oklch(54.8% 0.205 302.5);
Tailwind
colors: {
  custom: {
    50: '#b17ee0',
    500: '#8a46d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a46d1;
$custom-light: #b17ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46d1",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 209
  },
  "hsl": {
    "h": 269.353,
    "s": 60.173,
    "l": 54.706
  },
  "oklch": {
    "l": 0.548,
    "c": 0.20506,
    "h": 302.5
  },
  "luminance": 0.14387
}

Semantic roles & 50–950 ramp

primary
#8A46D1
secondary
#BAD79C
accent
#E34496
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46D1

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

Preview Lab → · Contrast checker → · Palette generator →

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