#8F4DEC#8F4DEC

#8F4DEC is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.2% C 0.226 H 298.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8F4DEC
RGBrgb(143, 77, 236)
HSLhsl(265, 81%, 61%)
HSVhsv(265, 67%, 93%)
CMYKcmyk(39.4%, 67.4%, 0%, 7.5%)
CIE-LABlab(48.51, 58.98, -70.08)
CIE-LCHlch(48.51, 91.60, 310.08°)
OKLaboklab(58.21% 0.1063 -0.2)
OKLCHoklch(58.21% 0.226 298)
XYZxyz(29.1180, 17.2031, 81.1270)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4DEC #AAEC4D
analogous
#4D5BEC #8F4DEC #DF4DEC
triadic
#8F4DEC #EC8F4D #4DEC8F
tetradic
#8F4DEC #EC4D5B #AAEC4D #4DECDF
square
#8F4DEC #EC4D5B #AAEC4D #4DECDF
split-complementary
#8F4DEC #ECDF4D #5BEC4D
monochromatic
#5212AC #6D18E4 #8F4DEC #B284F2 #D5BCF8

Accessibility & contrast

On white

4.73
#8F4DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8F4DEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4DEC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4DEC#FFFFFF#000000##FFFFFF
##8F4DEC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#787397
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8f4dec;
/* rgb */ color: rgb(143, 77, 236);
/* oklch */ color: oklch(58.2% 0.226 298.0);
Tailwind
colors: {
  custom: {
    50: '#b683f3',
    500: '#8f4dec',
    950: '#000000',
  },
}
SCSS
$custom: #8f4dec;
$custom-light: #b683f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4dec",
  "rgb": {
    "r": 143,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 264.906,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58209,
    "c": 0.22649,
    "h": 298
  },
  "luminance": 0.17204
}

Semantic roles & 50–950 ramp

primary
#8F4DEC
secondary
#CFE8AD
accent
#DD0885
background
#FBF8FF
surface
#F7EFFE
border
#D0CAD6
text
#120B17
muted
#817C85

Preview Lab

Preview with #8F4DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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