#8F45CC#8F45CC

#8F45CC is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.9% C 0.202 H 305.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8F45CC
RGBrgb(143, 69, 204)
HSLhsl(273, 57%, 54%)
HSVhsv(273, 66%, 80%)
CMYKcmyk(29.9%, 66.2%, 0%, 20%)
CIE-LABlab(44.88, 55.16, -57.74)
CIE-LCHlch(44.88, 79.85, 313.69°)
OKLaboklab(54.9% 0.1186 -0.1637)
OKLCHoklch(54.9% 0.202 305.9)
XYZxyz(24.3525, 14.4557, 58.6223)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45CC #82CC45
analogous
#4B45CC #8F45CC #CC45C5
triadic
#8F45CC #CC8F45 #45CC8F
tetradic
#8F45CC #CC4B45 #82CC45 #45C5CC
square
#8F45CC #CC4B45 #82CC45 #45C5CC
split-complementary
#8F45CC #C5CC45 #45CC4B
monochromatic
#4F2076 #702EA6 #8F45CC #AC75D9 #C9A5E6

Accessibility & contrast

On white

5.40
#8F45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8F45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45CC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45CC#FFFFFF#000000##FFFFFF
##8F45CC1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#206BC9
Tritanopia (blue-blind)
#846283
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f45cc;
/* rgb */ color: rgb(143, 69, 204);
/* oklch */ color: oklch(54.9% 0.202 305.9);
Tailwind
colors: {
  custom: {
    50: '#b47edc',
    500: '#8f45cc',
    950: '#000000',
  },
}
SCSS
$custom: #8f45cc;
$custom-light: #b47edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45cc",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 272.889,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54895,
    "c": 0.20213,
    "h": 305.9
  },
  "luminance": 0.14456
}

Semantic roles & 50–950 ramp

primary
#8F45CC
secondary
#B4D399
accent
#E0488D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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