#8A46AF#8A46AF

#8A46AF is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.5% C 0.168 H 311.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A46AF
RGBrgb(138, 70, 175)
HSLhsl(279, 43%, 48%)
HSVhsv(279, 60%, 69%)
CMYKcmyk(21.1%, 60%, 0%, 31.4%)
CIE-LABlab(42.58, 46.90, -44.54)
CIE-LCHlch(42.58, 64.68, 316.48°)
OKLaboklab(52.51% 0.1122 -0.1251)
OKLCHoklch(52.51% 0.168 311.9)
XYZxyz(20.4079, 12.8792, 41.9600)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46AF #6BAF46
analogous
#5546AF #8A46AF #AF469F
triadic
#8A46AF #AF8A46 #46AF8A
tetradic
#8A46AF #AF5546 #6BAF46 #469FAF
square
#8A46AF #AF5546 #6BAF46 #469FAF
split-complementary
#8A46AF #9FAF46 #46AF55
monochromatic
#452358 #683583 #8A46AF #A66DC5 #C199D6

Accessibility & contrast

On white

5.87
#8A46AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A46AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46AF
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46AF#FFFFFF#000000##FFFFFF
##8A46AF1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B2
Deuteranopia (green-blind)
#3E66AC
Tritanopia (blue-blind)
#865974
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a46af;
/* rgb */ color: rgb(138, 70, 175);
/* oklch */ color: oklch(52.5% 0.168 311.9);
Tailwind
colors: {
  custom: {
    50: '#af7dc7',
    500: '#8a46af',
    950: '#000000',
  },
}
SCSS
$custom: #8a46af;
$custom-light: #af7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46af",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 278.857,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52505,
    "c": 0.16805,
    "h": 311.9
  },
  "luminance": 0.12879
}

Semantic roles & 50–950 ramp

primary
#8A46AF
secondary
#A1C28E
accent
#D35581
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46AF

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

Preview Lab → · Contrast checker → · Palette generator →

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