#8A40BB#8A40BB

#8A40BB is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.189 H 308.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A40BB
RGBrgb(138, 64, 187)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 66%, 73%)
CMYKcmyk(26.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(42.24, 52.57, -52.14)
CIE-LCHlch(42.24, 74.04, 315.24°)
OKLaboklab(52.5% 0.1191 -0.1474)
OKLCHoklch(52.5% 0.189 308.9)
XYZxyz(21.2825, 12.6583, 48.3262)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40BB #71BB40
analogous
#4D40BB #8A40BB #BB40AF
triadic
#8A40BB #BB8A40 #40BB8A
tetradic
#8A40BB #BB4D40 #71BB40 #40AFBB
square
#8A40BB #BB4D40 #71BB40 #40AFBB
split-complementary
#8A40BB #AFBB40 #40BB4D
monochromatic
#472160 #68308D #8A40BB #A66CCD #C299DC

Accessibility & contrast

On white

5.95
#8A40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40BB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40BB#FFFFFF#000000##FFFFFF
##8A40BB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2B65B8
Tritanopia (blue-blind)
#835A78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a40bb;
/* rgb */ color: rgb(138, 64, 187);
/* oklch */ color: oklch(52.5% 0.189 308.9);
Tailwind
colors: {
  custom: {
    50: '#b07ad0',
    500: '#8a40bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a40bb;
$custom-light: #b07ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40bb",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 276.098,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52502,
    "c": 0.18947,
    "h": 308.9
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#8A40BB
secondary
#A6C88F
accent
#D94F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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