#8A40CE#8A40CE

#8A40CE is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.209 H 304.0°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A40CE
RGBrgb(138, 64, 206)
HSLhsl(271, 59%, 53%)
HSVhsv(271, 69%, 81%)
CMYKcmyk(33%, 68.9%, 0%, 19.2%)
CIE-LABlab(43.55, 56.95, -61.08)
CIE-LCHlch(43.55, 83.51, 312.99°)
OKLaboklab(53.85% 0.117 -0.1736)
OKLCHoklch(53.85% 0.209 304)
XYZxyz(23.4527, 13.5264, 59.7559)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40CE #84CE40
analogous
#4340CE #8A40CE #CE40CB
triadic
#8A40CE #CE8A40 #40CE8A
tetradic
#8A40CE #CE4340 #84CE40 #40CBCE
square
#8A40CE #CE4340 #84CE40 #40CBCE
split-complementary
#8A40CE #CBCE40 #40CE43
monochromatic
#4C1E75 #6B2BA6 #8A40CE #A871DA #C6A1E7

Accessibility & contrast

On white

5.67
#8A40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40CE
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40CE#FFFFFF#000000##FFFFFF
##8A40CE1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#7D6182
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a40ce;
/* rgb */ color: rgb(138, 64, 206);
/* oklch */ color: oklch(53.8% 0.209 304.0);
Tailwind
colors: {
  custom: {
    50: '#b17ade',
    500: '#8a40ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a40ce;
$custom-light: #b17ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40ce",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 271.268,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53848,
    "c": 0.20939,
    "h": 304
  },
  "luminance": 0.13526
}

Semantic roles & 50–950 ramp

primary
#8A40CE
secondary
#B4D496
accent
#E24591
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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