#8F4DB2#8F4DB2

#8F4DB2 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.162 H 312.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8F4DB2
RGBrgb(143, 77, 178)
HSLhsl(279, 40%, 50%)
HSVhsv(279, 57%, 70%)
CMYKcmyk(19.7%, 56.7%, 0%, 30.2%)
CIE-LABlab(44.75, 45.22, -42.81)
CIE-LCHlch(44.75, 62.28, 316.57°)
OKLaboklab(54.28% 0.1095 -0.12)
OKLCHoklch(54.28% 0.162 312.4)
XYZxyz(22.0160, 14.3623, 43.7233)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4DB2 #70B24D
analogous
#5C4DB2 #8F4DB2 #B24DA3
triadic
#8F4DB2 #B28F4D #4DB28F
tetradic
#8F4DB2 #B25C4D #70B24D #4DA3B2
square
#8F4DB2 #B25C4D #70B24D #4DA3B2
split-complementary
#8F4DB2 #A3B24D #4DB25C
monochromatic
#4A285D #6D3B87 #8F4DB2 #AA78C4 #C5A2D7

Accessibility & contrast

On white

5.42
#8F4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8F4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4DB2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4DB2#FFFFFF#000000##FFFFFF
##8F4DB21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#476BAF
Tritanopia (blue-blind)
#8B5F78
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f4db2;
/* rgb */ color: rgb(143, 77, 178);
/* oklch */ color: oklch(54.3% 0.162 312.4);
Tailwind
colors: {
  custom: {
    50: '#b282c9',
    500: '#8f4db2',
    950: '#000000',
  },
}
SCSS
$custom: #8f4db2;
$custom-light: #b282c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4db2",
  "rgb": {
    "r": 143,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 279.208,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.54283,
    "c": 0.16242,
    "h": 312.4
  },
  "luminance": 0.14362
}

Semantic roles & 50–950 ramp

primary
#8F4DB2
secondary
#A6C497
accent
#CF5882
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8F4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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