#8A46CA#8A46CA

#8A46CA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.3% C 0.197 H 304.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A46CA
RGBrgb(138, 70, 202)
HSLhsl(271, 55%, 53%)
HSVhsv(271, 65%, 79%)
CMYKcmyk(31.7%, 65.3%, 0%, 20.8%)
CIE-LABlab(44.30, 53.14, -57.55)
CIE-LCHlch(44.30, 78.33, 312.72°)
OKLaboklab(54.3% 0.111 -0.1633)
OKLCHoklch(54.3% 0.197 304.2)
XYZxyz(23.3297, 14.0479, 57.3481)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46CA #86CA46
analogous
#4846CA #8A46CA #CA46C8
triadic
#8A46CA #CA8A46 #46CA8A
tetradic
#8A46CA #CA4846 #86CA46 #46C8CA
square
#8A46CA #CA4846 #86CA46 #46C8CA
split-complementary
#8A46CA #C8CA46 #46CA48
monochromatic
#4C2174 #6B2FA4 #8A46CA #A876D8 #C6A5E5

Accessibility & contrast

On white

5.51
#8A46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8A46CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46CA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46CA#FFFFFF#000000##FFFFFF
##8A46CA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#1C69C7
Tritanopia (blue-blind)
#7E6382
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a46ca;
/* rgb */ color: rgb(138, 70, 202);
/* oklch */ color: oklch(54.3% 0.197 304.2);
Tailwind
colors: {
  custom: {
    50: '#b17edb',
    500: '#8a46ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a46ca;
$custom-light: #b17edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46ca",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 270.909,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54302,
    "c": 0.19746,
    "h": 304.2
  },
  "luminance": 0.14048
}

Semantic roles & 50–950 ramp

primary
#8A46CA
secondary
#B5D29A
accent
#DF4992
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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