#8A40D7#8A40D7

#8A40D7 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.5% C 0.219 H 301.9°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A40D7
RGBrgb(138, 64, 215)
HSLhsl(269, 65%, 55%)
HSVhsv(269, 70%, 84%)
CMYKcmyk(35.8%, 70.2%, 0%, 15.7%)
CIE-LABlab(44.20, 59.07, -65.20)
CIE-LCHlch(44.20, 87.97, 312.18°)
OKLaboklab(54.52% 0.1156 -0.1857)
OKLCHoklch(54.52% 0.219 301.9)
XYZxyz(24.5774, 13.9763, 65.6797)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40D7 #8DD740
analogous
#4042D7 #8A40D7 #D640D7
triadic
#8A40D7 #D78A40 #40D78A
tetradic
#8A40D7 #D74042 #8DD740 #40D7D6
square
#8A40D7 #D74042 #8DD740 #40D7D6
split-complementary
#8A40D7 #D7D640 #42D740
monochromatic
#4D1B81 #6B26B4 #8A40D7 #A973E2 #C8A5EC

Accessibility & contrast

On white

5.53
#8A40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40D7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40D7#FFFFFF#000000##FFFFFF
##8A40D71.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#7A6487
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a40d7;
/* rgb */ color: rgb(138, 64, 215);
/* oklch */ color: oklch(54.5% 0.219 301.9);
Tailwind
colors: {
  custom: {
    50: '#b27be4',
    500: '#8a40d7',
    950: '#000000',
  },
}
SCSS
$custom: #8a40d7;
$custom-light: #b27be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40d7",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 269.404,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54519,
    "c": 0.2188,
    "h": 301.9
  },
  "luminance": 0.13976
}

Semantic roles & 50–950 ramp

primary
#8A40D7
secondary
#BAD99A
accent
#E83F96
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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