#8F40E5#8F40E5

#8F40E5 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.2% C 0.234 H 300.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8F40E5
RGBrgb(143, 64, 229)
HSLhsl(269, 76%, 57%)
HSVhsv(269, 72%, 90%)
CMYKcmyk(37.6%, 72.1%, 0%, 10.2%)
CIE-LABlab(45.86, 63.27, -70.45)
CIE-LCHlch(45.86, 94.69, 311.93°)
OKLaboklab(56.16% 0.1199 -0.201)
OKLCHoklch(56.16% 0.234 300.8)
XYZxyz(27.3005, 15.1634, 75.6021)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40E5 #96E540
analogous
#4044E5 #8F40E5 #E140E5
triadic
#8F40E5 #E58F40 #40E58F
tetradic
#8F40E5 #E54044 #96E540 #40E5E1
square
#8F40E5 #E54044 #96E540 #40E5E1
split-complementary
#8F40E5 #E5E140 #44E540
monochromatic
#531496 #701CCC #8F40E5 #AF76EC #CEACF4

Accessibility & contrast

On white

5.21
#8F40E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8F40E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40E5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40E5#FFFFFF#000000##FFFFFF
##8F40E51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#006CE2
Tritanopia (blue-blind)
#7C698F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f40e5;
/* rgb */ color: rgb(143, 64, 229);
/* oklch */ color: oklch(56.2% 0.234 300.8);
Tailwind
colors: {
  custom: {
    50: '#b67cee',
    500: '#8f40e5',
    950: '#000000',
  },
}
SCSS
$custom: #8f40e5;
$custom-light: #b67cee;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40e5",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 229
  },
  "hsl": {
    "h": 268.727,
    "s": 76.037,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.23407,
    "h": 300.8
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#8F40E5
secondary
#C2E29F
accent
#F33598
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8F40E5

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

Preview Lab → · Contrast checker → · Palette generator →

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