#8F45D6#8F45D6

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

Color values

HEX#8F45D6
RGBrgb(143, 69, 214)
HSLhsl(271, 64%, 55%)
HSVhsv(271, 68%, 84%)
CMYKcmyk(33.2%, 67.8%, 0%, 16.1%)
CIE-LABlab(45.57, 57.49, -62.38)
CIE-LCHlch(45.57, 84.83, 312.66°)
OKLaboklab(55.61% 0.1175 -0.1773)
OKLCHoklch(55.61% 0.213 303.5)
XYZxyz(25.5906, 14.9510, 65.1429)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45D6 #8CD645
analogous
#4645D6 #8F45D6 #D645D4
triadic
#8F45D6 #D68F45 #45D68F
tetradic
#8F45D6 #D64645 #8CD645 #45D4D6
square
#8F45D6 #D64645 #8CD645 #45D4D6
split-complementary
#8F45D6 #D4D645 #45D646
monochromatic
#511D84 #7028B6 #8F45D6 #AD77E1 #CBA9EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F45D6#FFFFFF#000000##FFFFFF
##8F45D61.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)
#006ADA
Deuteranopia (green-blind)
#006CD3
Tritanopia (blue-blind)
#816688
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f45d6;
/* rgb */ color: rgb(143, 69, 214);
/* oklch */ color: oklch(55.6% 0.213 303.5);
Tailwind
colors: {
  custom: {
    50: '#b57ee3',
    500: '#8f45d6',
    950: '#000000',
  },
}
SCSS
$custom: #8f45d6;
$custom-light: #b57ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45d6",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 270.621,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55606,
    "c": 0.21269,
    "h": 303.5
  },
  "luminance": 0.14951
}

Semantic roles & 50–950 ramp

primary
#8F45D6
secondary
#BBDA9D
accent
#E74192
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F45D6

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

Preview Lab → · Contrast checker → · Palette generator →

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