#8F40CB#8F40CB

#8F40CB is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.207 H 306.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8F40CB
RGBrgb(143, 64, 203)
HSLhsl(274, 57%, 52%)
HSVhsv(274, 68%, 80%)
CMYKcmyk(29.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.97, 57.26, -58.63)
CIE-LCHlch(43.97, 81.95, 314.32°)
OKLaboklab(54.22% 0.1241 -0.1663)
OKLCHoklch(54.22% 0.207 306.7)
XYZxyz(23.9383, 13.8185, 57.8945)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40CB #7CCB40
analogous
#4A40CB #8F40CB #CB40C1
triadic
#8F40CB #CB8F40 #40CB8F
tetradic
#8F40CB #CB4A40 #7CCB40 #40C1CB
square
#8F40CB #CB4A40 #7CCB40 #40C1CB
split-complementary
#8F40CB #C1CB40 #40CB4A
monochromatic
#4E1F72 #6F2CA2 #8F40CB #AB70D8 #C7A0E5

Accessibility & contrast

On white

5.58
#8F40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8F40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40CB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40CB#FFFFFF#000000##FFFFFF
##8F40CB1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#1868C8
Tritanopia (blue-blind)
#855F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f40cb;
/* rgb */ color: rgb(143, 64, 203);
/* oklch */ color: oklch(54.2% 0.207 306.7);
Tailwind
colors: {
  custom: {
    50: '#b47bdc',
    500: '#8f40cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f40cb;
$custom-light: #b47bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40cb",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 274.101,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54223,
    "c": 0.20748,
    "h": 306.7
  },
  "luminance": 0.13818
}

Semantic roles & 50–950 ramp

primary
#8F40CB
secondary
#AFD295
accent
#E04789
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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