#8F50CB#8F50CB

#8F50CB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.186 H 304.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8F50CB
RGBrgb(143, 80, 203)
HSLhsl(271, 54%, 55%)
HSVhsv(271, 61%, 80%)
CMYKcmyk(29.6%, 60.6%, 0%, 20.4%)
CIE-LABlab(46.83, 49.43, -54.02)
CIE-LCHlch(46.83, 73.23, 312.46°)
OKLaboklab(56.28% 0.1059 -0.1528)
OKLCHoklch(56.28% 0.186 304.7)
XYZxyz(24.9735, 15.8889, 58.2395)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F50CB #8CCB50
analogous
#5150CB #8F50CB #CB50C9
triadic
#8F50CB #CB8F50 #50CB8F
tetradic
#8F50CB #CB5150 #8CCB50 #50C9CB
square
#8F50CB #CB5150 #8CCB50 #50C9CB
split-complementary
#8F50CB #C9CB50 #50CB51
monochromatic
#51257C #7033AB #8F50CB #AD7FD9 #CBAEE7

Accessibility & contrast

On white

5.03
#8F50CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8F50CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F50CB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F50CB#FFFFFF#000000##FFFFFF
##8F50CB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6DCF
Deuteranopia (green-blind)
#346FC8
Tritanopia (blue-blind)
#846986
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8f50cb;
/* rgb */ color: rgb(143, 80, 203);
/* oklch */ color: oklch(56.3% 0.186 304.7);
Tailwind
colors: {
  custom: {
    50: '#b484db',
    500: '#8f50cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f50cb;
$custom-light: #b484db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f50cb",
  "rgb": {
    "r": 143,
    "g": 80,
    "b": 203
  },
  "hsl": {
    "h": 270.732,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56283,
    "c": 0.18591,
    "h": 304.7
  },
  "luminance": 0.15889
}

Semantic roles & 50–950 ramp

primary
#8F50CB
secondary
#BBD5A2
accent
#DE4A92
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F50CB

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

Preview Lab → · Contrast checker → · Palette generator →

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