#8A46D2#8A46D2

#8A46D2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.206 H 302.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A46D2
RGBrgb(138, 70, 210)
HSLhsl(269, 61%, 55%)
HSVhsv(269, 67%, 82%)
CMYKcmyk(34.3%, 66.7%, 0%, 17.6%)
CIE-LABlab(44.85, 55.05, -61.27)
CIE-LCHlch(44.85, 82.37, 311.94°)
OKLaboklab(54.87% 0.1102 -0.1742)
OKLCHoklch(54.87% 0.206 302.3)
XYZxyz(24.3015, 14.4367, 62.4665)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46D2 #8ED246
analogous
#4648D2 #8A46D2 #D046D2
triadic
#8A46D2 #D28A46 #46D28A
tetradic
#8A46D2 #D24648 #8ED246 #46D2D0
square
#8A46D2 #D24648 #8ED246 #46D2D0
split-complementary
#8A46D2 #D2D046 #48D246
monochromatic
#4D1F7F #6B2BB0 #8A46D2 #A977DE #C8A8EA

Accessibility & contrast

On white

5.40
#8A46D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A46D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46D2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46D2#FFFFFF#000000##FFFFFF
##8A46D21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#006ACF
Tritanopia (blue-blind)
#7B6686
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a46d2;
/* rgb */ color: rgb(138, 70, 210);
/* oklch */ color: oklch(54.9% 0.206 302.3);
Tailwind
colors: {
  custom: {
    50: '#b17ee1',
    500: '#8a46d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a46d2;
$custom-light: #b17ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46d2",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 269.143,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54872,
    "c": 0.20615,
    "h": 302.3
  },
  "luminance": 0.14437
}

Semantic roles & 50–950 ramp

primary
#8A46D2
secondary
#BBD79C
accent
#E44496
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46D2

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

Preview Lab → · Contrast checker → · Palette generator →

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