#8F40BE#8F40BE

#8F40BE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.194 H 310.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8F40BE
RGBrgb(143, 64, 190)
HSLhsl(278, 50%, 50%)
HSVhsv(278, 66%, 75%)
CMYKcmyk(24.7%, 66.3%, 0%, 25.5%)
CIE-LABlab(43.10, 54.35, -52.48)
CIE-LCHlch(43.10, 75.55, 316.00°)
OKLaboklab(53.32% 0.1254 -0.1482)
OKLCHoklch(53.32% 0.194 310.2)
XYZxyz(22.4536, 13.2246, 50.0750)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40BE #6FBE40
analogous
#5040BE #8F40BE #BE40AE
triadic
#8F40BE #BE8F40 #40BE8F
tetradic
#8F40BE #BE5040 #6FBE40 #40AEBE
square
#8F40BE #BE5040 #6FBE40 #40AEBE
split-complementary
#8F40BE #AEBE40 #40BE50
monochromatic
#4A2162 #6D3190 #8F40BE #AA6DCE #C59BDD

Accessibility & contrast

On white

5.76
#8F40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8F40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40BE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40BE#FFFFFF#000000##FFFFFF
##8F40BE1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#2E67BB
Tritanopia (blue-blind)
#895A7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f40be;
/* rgb */ color: rgb(143, 64, 190);
/* oklch */ color: oklch(53.3% 0.194 310.2);
Tailwind
colors: {
  custom: {
    50: '#b47ad2',
    500: '#8f40be',
    950: '#000000',
  },
}
SCSS
$custom: #8f40be;
$custom-light: #b47ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40be",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 277.619,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53321,
    "c": 0.19414,
    "h": 310.2
  },
  "luminance": 0.13224
}

Semantic roles & 50–950 ramp

primary
#8F40BE
secondary
#A6C990
accent
#D94F82
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8F40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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