#8F45CE#8F45CE

#8F45CE is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.0% C 0.204 H 305.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8F45CE
RGBrgb(143, 69, 206)
HSLhsl(272, 58%, 54%)
HSVhsv(272, 67%, 81%)
CMYKcmyk(30.6%, 66.5%, 0%, 19.2%)
CIE-LABlab(45.01, 55.62, -58.67)
CIE-LCHlch(45.01, 80.85, 313.47°)
OKLaboklab(55.04% 0.1184 -0.1664)
OKLCHoklch(55.04% 0.204 305.4)
XYZxyz(24.5939, 14.5523, 59.8938)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45CE #84CE45
analogous
#4B45CE #8F45CE #CE45C9
triadic
#8F45CE #CE8F45 #45CE8F
tetradic
#8F45CE #CE4B45 #84CE45 #45C9CE
square
#8F45CE #CE4B45 #84CE45 #45C9CE
split-complementary
#8F45CE #C9CE45 #45CE4B
monochromatic
#502079 #702DA9 #8F45CE #AC75DB #C9A6E8

Accessibility & contrast

On white

5.37
#8F45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8F45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45CE
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45CE#FFFFFF#000000##FFFFFF
##8F45CE1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#1C6BCB
Tritanopia (blue-blind)
#846384
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f45ce;
/* rgb */ color: rgb(143, 69, 206);
/* oklch */ color: oklch(55.0% 0.204 305.4);
Tailwind
colors: {
  custom: {
    50: '#b47ede',
    500: '#8f45ce',
    950: '#000000',
  },
}
SCSS
$custom: #8f45ce;
$custom-light: #b47ede;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45ce",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 272.409,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55035,
    "c": 0.20424,
    "h": 305.4
  },
  "luminance": 0.14552
}

Semantic roles & 50–950 ramp

primary
#8F45CE
secondary
#B5D59A
accent
#E2468E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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