#8F4EF2#8F4EF2

#8F4EF2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.8% C 0.232 H 296.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8F4EF2
RGBrgb(143, 78, 242)
HSLhsl(264, 86%, 63%)
HSVhsv(264, 68%, 95%)
CMYKcmyk(40.9%, 67.8%, 0%, 5.1%)
CIE-LABlab(49.13, 59.99, -72.45)
CIE-LCHlch(49.13, 94.07, 309.62°)
OKLaboklab(58.79% 0.1044 -0.207)
OKLCHoklch(58.79% 0.232 296.8)
XYZxyz(30.0749, 17.6986, 85.8188)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4EF2 #B1F24E
analogous
#4E5FF2 #8F4EF2 #E14EF2
triadic
#8F4EF2 #F28F4E #4EF28F
tetradic
#8F4EF2 #F24E5F #B1F24E #4EF2E1
square
#8F4EF2 #F24E5F #B1F24E #4EF2E1
split-complementary
#8F4EF2 #F2E14E #5FF24E
monochromatic
#510EB8 #6B15EE #8F4EF2 #B387F6 #D7C0FA

Accessibility & contrast

On white

4.63
#8F4EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8F4EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4EF2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4EF2#FFFFFF#000000##FFFFFF
##8F4EF21.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#76769A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8f4ef2;
/* rgb */ color: rgb(143, 78, 242);
/* oklch */ color: oklch(58.8% 0.232 296.8);
Tailwind
colors: {
  custom: {
    50: '#b784f7',
    500: '#8f4ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8f4ef2;
$custom-light: #b784f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4ef2",
  "rgb": {
    "r": 143,
    "g": 78,
    "b": 242
  },
  "hsl": {
    "h": 263.78,
    "s": 86.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58785,
    "c": 0.23183,
    "h": 296.8
  },
  "luminance": 0.17699
}

Semantic roles & 50–950 ramp

primary
#8F4EF2
secondary
#D4ECB0
accent
#E3038A
background
#FBF8FF
surface
#F7EFFF
border
#D0CAD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8F4EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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