#8F46CA#8F46CA

#8F46CA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.9% C 0.199 H 306.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8F46CA
RGBrgb(143, 70, 202)
HSLhsl(273, 55%, 53%)
HSVhsv(273, 65%, 79%)
CMYKcmyk(29.2%, 65.3%, 0%, 20.8%)
CIE-LABlab(44.92, 54.22, -56.52)
CIE-LCHlch(44.92, 78.32, 313.81°)
OKLaboklab(54.88% 0.1177 -0.1601)
OKLCHoklch(54.88% 0.199 306.3)
XYZxyz(24.1762, 14.4845, 57.3878)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F46CA #81CA46
analogous
#4D46CA #8F46CA #CA46C3
triadic
#8F46CA #CA8F46 #46CA8F
tetradic
#8F46CA #CA4D46 #81CA46 #46C3CA
square
#8F46CA #CA4D46 #81CA46 #46C3CA
split-complementary
#8F46CA #C3CA46 #46CA4D
monochromatic
#4F2174 #702FA4 #8F46CA #AC76D8 #C9A5E5

Accessibility & contrast

On white

5.39
#8F46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8F46CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F46CA
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F46CA#FFFFFF#000000##FFFFFF
##8F46CA1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#266BC7
Tritanopia (blue-blind)
#856282
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f46ca;
/* rgb */ color: rgb(143, 70, 202);
/* oklch */ color: oklch(54.9% 0.199 306.3);
Tailwind
colors: {
  custom: {
    50: '#b47edb',
    500: '#8f46ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f46ca;
$custom-light: #b47edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f46ca",
  "rgb": {
    "r": 143,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 273.182,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54882,
    "c": 0.19868,
    "h": 306.3
  },
  "luminance": 0.14484
}

Semantic roles & 50–950 ramp

primary
#8F46CA
secondary
#B3D29A
accent
#DF498C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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