#8D40CA#8D40CA

#8D40CA is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.206 H 306.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8D40CA
RGBrgb(141, 64, 202)
HSLhsl(273, 57%, 52%)
HSVhsv(273, 68%, 79%)
CMYKcmyk(30.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(43.65, 56.62, -58.59)
CIE-LCHlch(43.65, 81.48, 314.02°)
OKLaboklab(53.91% 0.1216 -0.1662)
OKLCHoklch(53.91% 0.206 306.2)
XYZxyz(23.4763, 13.5940, 57.2528)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40CA #7DCA40
analogous
#4840CA #8D40CA #CA40C2
triadic
#8D40CA #CA8D40 #40CA8D
tetradic
#8D40CA #CA4840 #7DCA40 #40C2CA
square
#8D40CA #CA4840 #7DCA40 #40C2CA
split-complementary
#8D40CA #C2CA40 #40CA48
monochromatic
#4D1F70 #6D2CA0 #8D40CA #AA70D7 #C6A0E5

Accessibility & contrast

On white

5.65
#8D40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8D40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40CA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40CA#FFFFFF#000000##FFFFFF
##8D40CA1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#1568C7
Tritanopia (blue-blind)
#825F80
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d40ca;
/* rgb */ color: rgb(141, 64, 202);
/* oklch */ color: oklch(53.9% 0.206 306.2);
Tailwind
colors: {
  custom: {
    50: '#b37bdb',
    500: '#8d40ca',
    950: '#000000',
  },
}
SCSS
$custom: #8d40ca;
$custom-light: #b37bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40ca",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 273.478,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53912,
    "c": 0.20593,
    "h": 306.2
  },
  "luminance": 0.13594
}

Semantic roles & 50–950 ramp

primary
#8D40CA
secondary
#AFD195
accent
#E0488B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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