#8F45CB#8F45CB

#8F45CB is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.8% C 0.201 H 306.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8F45CB
RGBrgb(143, 69, 203)
HSLhsl(273, 56%, 53%)
HSVhsv(273, 66%, 80%)
CMYKcmyk(29.6%, 66%, 0%, 20.4%)
CIE-LABlab(44.81, 54.93, -57.27)
CIE-LCHlch(44.81, 79.35, 313.80°)
OKLaboklab(54.83% 0.1187 -0.1623)
OKLCHoklch(54.83% 0.201 306.2)
XYZxyz(24.2330, 14.4079, 57.9927)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45CB #81CB45
analogous
#4C45CB #8F45CB #CB45C4
triadic
#8F45CB #CB8F45 #45CB8F
tetradic
#8F45CB #CB4C45 #81CB45 #45C4CB
square
#8F45CB #CB4C45 #81CB45 #45C4CB
split-complementary
#8F45CB #C4CB45 #45CB4C
monochromatic
#4F2175 #702EA5 #8F45CB #AC75D8 #C9A5E6

Accessibility & contrast

On white

5.41
#8F45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8F45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45CB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45CB#FFFFFF#000000##FFFFFF
##8F45CB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#226AC8
Tritanopia (blue-blind)
#856282
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f45cb;
/* rgb */ color: rgb(143, 69, 203);
/* oklch */ color: oklch(54.8% 0.201 306.2);
Tailwind
colors: {
  custom: {
    50: '#b47edc',
    500: '#8f45cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f45cb;
$custom-light: #b47edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45cb",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 273.134,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54826,
    "c": 0.20107,
    "h": 306.2
  },
  "luminance": 0.14408
}

Semantic roles & 50–950 ramp

primary
#8F45CB
secondary
#B3D399
accent
#E0488C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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