#8A46DC#8A46DC

#8A46DC is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.217 H 300.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A46DC
RGBrgb(138, 70, 220)
HSLhsl(267, 68%, 57%)
HSVhsv(267, 68%, 86%)
CMYKcmyk(37.3%, 68.2%, 0%, 13.7%)
CIE-LABlab(45.57, 57.47, -65.83)
CIE-LCHlch(45.57, 87.39, 311.12°)
OKLaboklab(55.61% 0.1089 -0.1876)
OKLCHoklch(55.61% 0.217 300.1)
XYZxyz(25.5865, 14.9507, 69.2340)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46DC #98DC46
analogous
#464DDC #8A46DC #D546DC
triadic
#8A46DC #DC8A46 #46DC8A
tetradic
#8A46DC #DC464D #98DC46 #46DCD5
square
#8A46DC #DC464D #98DC46 #46DCD5
split-complementary
#8A46DC #DCD546 #4DDC46
monochromatic
#4E1B8D #6B24C0 #8A46DC #AB79E6 #CBADEF

Accessibility & contrast

On white

5.26
#8A46DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A46DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46DC
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46DC#FFFFFF#000000##FFFFFF
##8A46DC1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#786A8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a46dc;
/* rgb */ color: rgb(138, 70, 220);
/* oklch */ color: oklch(55.6% 0.217 300.1);
Tailwind
colors: {
  custom: {
    50: '#b27ee8',
    500: '#8a46dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a46dc;
$custom-light: #b27ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46dc",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 267.2,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55608,
    "c": 0.21694,
    "h": 300.1
  },
  "luminance": 0.14951
}

Semantic roles & 50–950 ramp

primary
#8A46DC
secondary
#C2DDA0
accent
#EB3D9C
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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