#8A46DB#8A46DB

#8A46DB is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.5% C 0.216 H 300.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A46DB
RGBrgb(138, 70, 219)
HSLhsl(267, 67%, 57%)
HSVhsv(267, 68%, 86%)
CMYKcmyk(37%, 68%, 0%, 14.1%)
CIE-LABlab(45.49, 57.23, -65.38)
CIE-LCHlch(45.49, 86.89, 311.20°)
OKLaboklab(55.53% 0.109 -0.1863)
OKLCHoklch(55.53% 0.216 300.3)
XYZxyz(25.4544, 14.8979, 68.5386)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46DB #97DB46
analogous
#464DDB #8A46DB #D546DB
triadic
#8A46DB #DB8A46 #46DB8A
tetradic
#8A46DB #DB464D #97DB46 #46DBD5
square
#8A46DB #DB464D #97DB46 #46DBD5
split-complementary
#8A46DB #DBD546 #4DDB46
monochromatic
#4E1B8B #6B25BF #8A46DB #AA79E5 #CBACEF

Accessibility & contrast

On white

5.28
#8A46DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A46DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46DB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46DB#FFFFFF#000000##FFFFFF
##8A46DB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#78698B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a46db;
/* rgb */ color: rgb(138, 70, 219);
/* oklch */ color: oklch(55.5% 0.216 300.3);
Tailwind
colors: {
  custom: {
    50: '#b27ee7',
    500: '#8a46db',
    950: '#000000',
  },
}
SCSS
$custom: #8a46db;
$custom-light: #b27ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46db",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 267.383,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55534,
    "c": 0.21587,
    "h": 300.3
  },
  "luminance": 0.14898
}

Semantic roles & 50–950 ramp

primary
#8A46DB
secondary
#C1DDA0
accent
#EA3D9B
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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