#8F45D8#8F45D8

#8F45D8 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.8% C 0.215 H 303.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8F45D8
RGBrgb(143, 69, 216)
HSLhsl(270, 65%, 56%)
HSVhsv(270, 68%, 85%)
CMYKcmyk(33.8%, 68.1%, 0%, 15.3%)
CIE-LABlab(45.71, 57.96, -63.29)
CIE-LCHlch(45.71, 85.82, 312.48°)
OKLaboklab(55.75% 0.1172 -0.18)
OKLCHoklch(55.75% 0.215 303.1)
XYZxyz(25.8476, 15.0538, 66.4964)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45D8 #8ED845
analogous
#4545D8 #8F45D8 #D845D7
triadic
#8F45D8 #D88F45 #45D88F
tetradic
#8F45D8 #D84545 #8ED845 #45D7D8
square
#8F45D8 #D84545 #8ED845 #45D7D8
split-complementary
#8F45D8 #D7D845 #45D845
monochromatic
#521C86 #7027B9 #8F45D8 #AD78E3 #CCAAED

Accessibility & contrast

On white

5.24
#8F45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8F45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45D8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45D8#FFFFFF#000000##FFFFFF
##8F45D81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#006CD5
Tritanopia (blue-blind)
#806789
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f45d8;
/* rgb */ color: rgb(143, 69, 216);
/* oklch */ color: oklch(55.8% 0.215 303.1);
Tailwind
colors: {
  custom: {
    50: '#b57ee5',
    500: '#8f45d8',
    950: '#000000',
  },
}
SCSS
$custom: #8f45d8;
$custom-light: #b57ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45d8",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 270.204,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55751,
    "c": 0.2148,
    "h": 303.1
  },
  "luminance": 0.15054
}

Semantic roles & 50–950 ramp

primary
#8F45D8
secondary
#BCDB9E
accent
#E84093
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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