#8A40BC#8A40BC

#8A40BC is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.191 H 308.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A40BC
RGBrgb(138, 64, 188)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 66%, 74%)
CMYKcmyk(26.6%, 66%, 0%, 26.3%)
CIE-LABlab(42.31, 52.80, -52.62)
CIE-LCHlch(42.31, 74.54, 315.10°)
OKLaboklab(52.57% 0.119 -0.1488)
OKLCHoklch(52.57% 0.191 308.7)
XYZxyz(21.3899, 12.7013, 48.8920)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40BC #72BC40
analogous
#4C40BC #8A40BC #BC40B0
triadic
#8A40BC #BC8A40 #40BC8A
tetradic
#8A40BC #BC4C40 #72BC40 #40B0BC
square
#8A40BC #BC4C40 #72BC40 #40B0BC
split-complementary
#8A40BC #B0BC40 #40BC4C
monochromatic
#472161 #68308E #8A40BC #A66CCD #C29ADD

Accessibility & contrast

On white

5.93
#8A40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40BC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40BC#FFFFFF#000000##FFFFFF
##8A40BC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a40bc;
/* rgb */ color: rgb(138, 64, 188);
/* oklch */ color: oklch(52.6% 0.191 308.7);
Tailwind
colors: {
  custom: {
    50: '#b07ad1',
    500: '#8a40bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a40bc;
$custom-light: #b07ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40bc",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 275.806,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52571,
    "c": 0.19052,
    "h": 308.7
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#8A40BC
secondary
#A6C98F
accent
#D94F87
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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