#8A40BE#8A40BE

#8A40BE is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.193 H 308.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A40BE
RGBrgb(138, 64, 190)
HSLhsl(275, 50%, 50%)
HSVhsv(275, 66%, 75%)
CMYKcmyk(27.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(42.44, 53.25, -53.57)
CIE-LCHlch(42.44, 75.54, 314.83°)
OKLaboklab(52.71% 0.1188 -0.1516)
OKLCHoklch(52.71% 0.193 308.1)
XYZxyz(21.6070, 12.7881, 50.0353)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40BE #74BE40
analogous
#4B40BE #8A40BE #BE40B3
triadic
#8A40BE #BE8A40 #40BE8A
tetradic
#8A40BE #BE4B40 #74BE40 #40B3BE
square
#8A40BE #BE4B40 #74BE40 #40B3BE
split-complementary
#8A40BE #B3BE40 #40BE4B
monochromatic
#472162 #693190 #8A40BE #A66DCE #C29BDD

Accessibility & contrast

On white

5.90
#8A40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40BE
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40BE#FFFFFF#000000##FFFFFF
##8A40BE1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#2765BB
Tritanopia (blue-blind)
#825B7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a40be;
/* rgb */ color: rgb(138, 64, 190);
/* oklch */ color: oklch(52.7% 0.193 308.1);
Tailwind
colors: {
  custom: {
    50: '#b07ad2',
    500: '#8a40be',
    950: '#000000',
  },
}
SCSS
$custom: #8a40be;
$custom-light: #b07ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40be",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 275.238,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52708,
    "c": 0.19261,
    "h": 308.1
  },
  "luminance": 0.12788
}

Semantic roles & 50–950 ramp

primary
#8A40BE
secondary
#A8C990
accent
#D94F88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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