#8F47CB#8F47CB

#8F47CB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 55.1% C 0.198 H 305.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8F47CB
RGBrgb(143, 71, 203)
HSLhsl(273, 56%, 54%)
HSVhsv(273, 65%, 80%)
CMYKcmyk(29.6%, 65%, 0%, 20.4%)
CIE-LABlab(45.16, 53.96, -56.71)
CIE-LCHlch(45.16, 78.28, 313.58°)
OKLaboklab(55.08% 0.1164 -0.1606)
OKLCHoklch(55.08% 0.198 305.9)
XYZxyz(24.3581, 14.6581, 58.0344)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F47CB #83CB47
analogous
#4D47CB #8F47CB #CB47C5
triadic
#8F47CB #CB8F47 #47CB8F
tetradic
#8F47CB #CB4D47 #83CB47 #47C5CB
square
#8F47CB #CB4D47 #83CB47 #47C5CB
split-complementary
#8F47CB #C5CB47 #47CB4D
monochromatic
#502176 #702FA6 #8F47CB #AC77D8 #C9A6E6

Accessibility & contrast

On white

5.34
#8F47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8F47CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F47CB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F47CB#FFFFFF#000000##FFFFFF
##8F47CB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#266BC8
Tritanopia (blue-blind)
#856383
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f47cb;
/* rgb */ color: rgb(143, 71, 203);
/* oklch */ color: oklch(55.1% 0.198 305.9);
Tailwind
colors: {
  custom: {
    50: '#b47fdc',
    500: '#8f47cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f47cb;
$custom-light: #b47fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f47cb",
  "rgb": {
    "r": 143,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 272.727,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55077,
    "c": 0.19841,
    "h": 305.9
  },
  "luminance": 0.14658
}

Semantic roles & 50–950 ramp

primary
#8F47CB
secondary
#B4D39B
accent
#DF498D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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