#8A40BD#8A40BD

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

Color values

HEX#8A40BD
RGBrgb(138, 64, 189)
HSLhsl(276, 49%, 50%)
HSVhsv(276, 66%, 74%)
CMYKcmyk(27%, 66.1%, 0%, 25.9%)
CIE-LABlab(42.38, 53.02, -53.10)
CIE-LCHlch(42.38, 75.04, 314.96°)
OKLaboklab(52.64% 0.1189 -0.1502)
OKLCHoklch(52.64% 0.192 308.4)
XYZxyz(21.4981, 12.7445, 49.4617)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40BD #73BD40
analogous
#4C40BD #8A40BD #BD40B2
triadic
#8A40BD #BD8A40 #40BD8A
tetradic
#8A40BD #BD4C40 #73BD40 #40B2BD
square
#8A40BD #BD4C40 #73BD40 #40B2BD
split-complementary
#8A40BD #B2BD40 #40BD4C
monochromatic
#472162 #69318F #8A40BD #A66DCD #C29ADD

Accessibility & contrast

On white

5.92
#8A40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40BD
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40BD#FFFFFF#000000##FFFFFF
##8A40BD1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#2865BA
Tritanopia (blue-blind)
#825A79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a40bd;
/* rgb */ color: rgb(138, 64, 189);
/* oklch */ color: oklch(52.6% 0.192 308.4);
Tailwind
colors: {
  custom: {
    50: '#b07ad2',
    500: '#8a40bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a40bd;
$custom-light: #b07ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40bd",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 275.52,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52639,
    "c": 0.19157,
    "h": 308.4
  },
  "luminance": 0.12744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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