#8A40D6#8A40D6

#8A40D6 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.4% C 0.218 H 302.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A40D6
RGBrgb(138, 64, 214)
HSLhsl(270, 65%, 55%)
HSVhsv(270, 70%, 84%)
CMYKcmyk(35.5%, 70.1%, 0%, 16.1%)
CIE-LABlab(44.13, 58.83, -64.74)
CIE-LCHlch(44.13, 87.48, 312.26°)
OKLaboklab(54.44% 0.1158 -0.1844)
OKLCHoklch(54.44% 0.218 302.1)
XYZxyz(24.4493, 13.9250, 65.0050)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40D6 #8CD640
analogous
#4041D6 #8A40D6 #D540D6
triadic
#8A40D6 #D68A40 #40D68A
tetradic
#8A40D6 #D64041 #8CD640 #40D6D5
square
#8A40D6 #D64041 #8CD640 #40D6D5
split-complementary
#8A40D6 #D6D540 #41D640
monochromatic
#4D1B80 #6B26B2 #8A40D6 #A972E1 #C8A5EC

Accessibility & contrast

On white

5.55
#8A40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40D6
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40D6#FFFFFF#000000##FFFFFF
##8A40D61.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a40d6;
/* rgb */ color: rgb(138, 64, 214);
/* oklch */ color: oklch(54.4% 0.218 302.1);
Tailwind
colors: {
  custom: {
    50: '#b27be4',
    500: '#8a40d6',
    950: '#000000',
  },
}
SCSS
$custom: #8a40d6;
$custom-light: #b27be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40d6",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 269.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.21775,
    "h": 302.1
  },
  "luminance": 0.13925
}

Semantic roles & 50–950 ramp

primary
#8A40D6
secondary
#B9D999
accent
#E84095
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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