#8F4DC7#8F4DC7

#8F4DC7 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.6% C 0.186 H 306.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8F4DC7
RGBrgb(143, 77, 199)
HSLhsl(272, 52%, 54%)
HSVhsv(272, 61%, 78%)
CMYKcmyk(28.1%, 61.3%, 0%, 22%)
CIE-LABlab(46.00, 50.03, -53.04)
CIE-LCHlch(46.00, 72.92, 313.33°)
OKLaboklab(55.6% 0.1096 -0.1499)
OKLCHoklch(55.6% 0.186 306.2)
XYZxyz(24.2882, 15.2711, 55.6899)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4DC7 #85C74D
analogous
#524DC7 #8F4DC7 #C74DC2
triadic
#8F4DC7 #C78F4D #4DC78F
tetradic
#8F4DC7 #C7524D #85C74D #4DC2C7
square
#8F4DC7 #C7524D #85C74D #4DC2C7
split-complementary
#8F4DC7 #C2C74D #4DC752
monochromatic
#502575 #7033A3 #8F4DC7 #AC7CD6 #CAAAE4

Accessibility & contrast

On white

5.18
#8F4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8F4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4DC7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4DC7#FFFFFF#000000##FFFFFF
##8F4DC71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6BCB
Deuteranopia (green-blind)
#346DC4
Tritanopia (blue-blind)
#866683
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f4dc7;
/* rgb */ color: rgb(143, 77, 199);
/* oklch */ color: oklch(55.6% 0.186 306.2);
Tailwind
colors: {
  custom: {
    50: '#b382d9',
    500: '#8f4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8f4dc7;
$custom-light: #b382d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4dc7",
  "rgb": {
    "r": 143,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 272.459,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55603,
    "c": 0.18573,
    "h": 306.2
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

primary
#8F4DC7
secondary
#B6D29E
accent
#DC4C8E
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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