#8F4CEB#8F4CEB

#8F4CEB is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.0% C 0.227 H 298.3°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8F4CEB
RGBrgb(143, 76, 235)
HSLhsl(265, 80%, 61%)
HSVhsv(265, 68%, 92%)
CMYKcmyk(39.1%, 67.7%, 0%, 7.8%)
CIE-LABlab(48.27, 59.22, -69.92)
CIE-LCHlch(48.27, 91.63, 310.26°)
OKLaboklab(58.01% 0.1074 -0.1995)
OKLCHoklch(58.01% 0.227 298.3)
XYZxyz(28.9037, 17.0063, 80.3409)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4CEB #A8EB4C
analogous
#4C58EB #8F4CEB #DE4CEB
triadic
#8F4CEB #EB8F4C #4CEB8F
tetradic
#8F4CEB #EB4C58 #A8EB4C #4CEBDE
square
#8F4CEB #EB4C58 #A8EB4C #4CEBDE
split-complementary
#8F4CEB #EBDE4C #58EB4C
monochromatic
#5213AA #6D19E1 #8F4CEB #B183F1 #D4BAF7

Accessibility & contrast

On white

4.77
#8F4CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8F4CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4CEB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4CEB#FFFFFF#000000##FFFFFF
##8F4CEB1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#797296
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8f4ceb;
/* rgb */ color: rgb(143, 76, 235);
/* oklch */ color: oklch(58.0% 0.227 298.3);
Tailwind
colors: {
  custom: {
    50: '#b683f2',
    500: '#8f4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8f4ceb;
$custom-light: #b683f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4ceb",
  "rgb": {
    "r": 143,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 265.283,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58009,
    "c": 0.22661,
    "h": 298.3
  },
  "luminance": 0.17007
}

Semantic roles & 50–950 ramp

primary
#8F4CEB
secondary
#CEE7AB
accent
#DC0983
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8F4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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