#8F40C8#8F40C8

#8F40C8 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.204 H 307.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8F40C8
RGBrgb(143, 64, 200)
HSLhsl(275, 55%, 52%)
HSVhsv(275, 68%, 78%)
CMYKcmyk(28.5%, 68%, 0%, 21.6%)
CIE-LABlab(43.77, 56.58, -57.22)
CIE-LCHlch(43.77, 80.47, 314.68°)
OKLaboklab(54.01% 0.1245 -0.1621)
OKLCHoklch(54.01% 0.204 307.5)
XYZxyz(23.5842, 13.6769, 56.0299)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40C8 #79C840
analogous
#4B40C8 #8F40C8 #C840BD
triadic
#8F40C8 #C88F40 #40C88F
tetradic
#8F40C8 #C84B40 #79C840 #40BDC8
square
#8F40C8 #C84B40 #79C840 #40BDC8
split-complementary
#8F40C8 #BDC840 #40C84B
monochromatic
#4D206E #6E2D9D #8F40C8 #AB70D6 #C79FE3

Accessibility & contrast

On white

5.62
#8F40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8F40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40C8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40C8#FFFFFF#000000##FFFFFF
##8F40C81.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#1F68C5
Tritanopia (blue-blind)
#865E7F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8f40c8;
/* rgb */ color: rgb(143, 64, 200);
/* oklch */ color: oklch(54.0% 0.204 307.5);
Tailwind
colors: {
  custom: {
    50: '#b47bd9',
    500: '#8f40c8',
    950: '#000000',
  },
}
SCSS
$custom: #8f40c8;
$custom-light: #b47bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40c8",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 274.853,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.20439,
    "h": 307.5
  },
  "luminance": 0.13677
}

Semantic roles & 50–950 ramp

primary
#8F40C8
secondary
#ADD094
accent
#DF4988
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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