#8A40D3#8A40D3

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

Color values

HEX#8A40D3
RGBrgb(138, 64, 211)
HSLhsl(270, 63%, 54%)
HSVhsv(270, 70%, 83%)
CMYKcmyk(34.6%, 69.7%, 0%, 17.3%)
CIE-LABlab(43.91, 58.12, -63.38)
CIE-LCHlch(43.91, 85.99, 312.52°)
OKLaboklab(54.22% 0.1163 -0.1804)
OKLCHoklch(54.22% 0.215 302.8)
XYZxyz(24.0697, 13.7732, 63.0058)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40D3 #89D340
analogous
#4140D3 #8A40D3 #D340D3
triadic
#8A40D3 #D38A40 #40D38A
tetradic
#8A40D3 #D34140 #89D340 #40D3D3
square
#8A40D3 #D34140 #89D340 #40D3D3
split-complementary
#8A40D3 #D3D340 #40D341
monochromatic
#4D1D7C #6B28AE #8A40D3 #A872DE #C7A3EA

Accessibility & contrast

On white

5.59
#8A40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8A40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40D3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40D3#FFFFFF#000000##FFFFFF
##8A40D31.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#7B6385
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a40d3;
/* rgb */ color: rgb(138, 64, 211);
/* oklch */ color: oklch(54.2% 0.215 302.8);
Tailwind
colors: {
  custom: {
    50: '#b27be1',
    500: '#8a40d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a40d3;
$custom-light: #b27be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40d3",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 270.204,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54218,
    "c": 0.21462,
    "h": 302.8
  },
  "luminance": 0.13773
}

Semantic roles & 50–950 ramp

primary
#8A40D3
secondary
#B7D798
accent
#E64293
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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