#8A40DD#8A40DD

#8A40DD is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.0% C 0.225 H 300.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A40DD
RGBrgb(138, 64, 221)
HSLhsl(268, 70%, 56%)
HSVhsv(268, 71%, 87%)
CMYKcmyk(37.6%, 71%, 0%, 13.3%)
CIE-LABlab(44.65, 60.49, -67.90)
CIE-LCHlch(44.65, 90.94, 311.70°)
OKLaboklab(54.98% 0.1146 -0.1937)
OKLCHoklch(54.98% 0.225 300.6)
XYZxyz(25.3626, 14.2903, 69.8147)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40DD #93DD40
analogous
#4044DD #8A40DD #D840DD
triadic
#8A40DD #DD8A40 #40DD8A
tetradic
#8A40DD #DD4044 #93DD40 #40DDD8
square
#8A40DD #DD4044 #93DD40 #40DDD8
split-complementary
#8A40DD #DDD840 #44DD40
monochromatic
#4E198A #6B22BE #8A40DD #AA74E6 #CAA8EF

Accessibility & contrast

On white

5.44
#8A40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40DD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40DD#FFFFFF#000000##FFFFFF
##8A40DD1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#0069DA
Tritanopia (blue-blind)
#77678B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a40dd;
/* rgb */ color: rgb(138, 64, 221);
/* oklch */ color: oklch(55.0% 0.225 300.6);
Tailwind
colors: {
  custom: {
    50: '#b37be9',
    500: '#8a40dd',
    950: '#000000',
  },
}
SCSS
$custom: #8a40dd;
$custom-light: #b37be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40dd",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 268.28,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54977,
    "c": 0.22505,
    "h": 300.6
  },
  "luminance": 0.14291
}

Semantic roles & 50–950 ramp

primary
#8A40DD
secondary
#BEDD9C
accent
#ED3B99
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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