#8A46CB#8A46CB

#8A46CB is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.4% C 0.199 H 304.0°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8A46CB
RGBrgb(138, 70, 203)
HSLhsl(271, 56%, 54%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(32%, 65.5%, 0%, 20.4%)
CIE-LABlab(44.37, 53.38, -58.02)
CIE-LCHlch(44.37, 78.83, 312.61°)
OKLaboklab(54.37% 0.1109 -0.1647)
OKLCHoklch(54.37% 0.199 304)
XYZxyz(23.4484, 14.0955, 57.9737)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46CB #87CB46
analogous
#4746CB #8A46CB #CB46C9
triadic
#8A46CB #CB8A46 #46CB8A
tetradic
#8A46CB #CB4746 #87CB46 #46C9CB
square
#8A46CB #CB4746 #87CB46 #46C9CB
split-complementary
#8A46CB #C9CB46 #46CB47
monochromatic
#4C2176 #6B2EA5 #8A46CB #A876D8 #C6A6E6

Accessibility & contrast

On white

5.50
#8A46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8A46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46CB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46CB#FFFFFF#000000##FFFFFF
##8A46CB1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#7E6382
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a46cb;
/* rgb */ color: rgb(138, 70, 203);
/* oklch */ color: oklch(54.4% 0.199 304.0);
Tailwind
colors: {
  custom: {
    50: '#b17edc',
    500: '#8a46cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a46cb;
$custom-light: #b17edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46cb",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 270.677,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54372,
    "c": 0.19855,
    "h": 304
  },
  "luminance": 0.14095
}

Semantic roles & 50–950 ramp

primary
#8A46CB
secondary
#B6D39A
accent
#DF4892
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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