#8A40BA#8A40BA

#8A40BA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.188 H 309.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A40BA
RGBrgb(138, 64, 186)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 66%, 73%)
CMYKcmyk(25.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(42.18, 52.34, -51.66)
CIE-LCHlch(42.18, 73.54, 315.38°)
OKLaboklab(52.43% 0.1192 -0.146)
OKLCHoklch(52.43% 0.188 309.2)
XYZxyz(21.1758, 12.6156, 47.7644)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40BA #70BA40
analogous
#4D40BA #8A40BA #BA40AD
triadic
#8A40BA #BA8A40 #40BA8A
tetradic
#8A40BA #BA4D40 #70BA40 #40ADBA
square
#8A40BA #BA4D40 #70BA40 #40ADBA
split-complementary
#8A40BA #ADBA40 #40BA4D
monochromatic
#46215F #68308C #8A40BA #A66BCC #C199DC

Accessibility & contrast

On white

5.96
#8A40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40BA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40BA#FFFFFF#000000##FFFFFF
##8A40BA1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2C65B7
Tritanopia (blue-blind)
#835977
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a40ba;
/* rgb */ color: rgb(138, 64, 186);
/* oklch */ color: oklch(52.4% 0.188 309.2);
Tailwind
colors: {
  custom: {
    50: '#b07acf',
    500: '#8a40ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a40ba;
$custom-light: #b07acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40ba",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 276.393,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52434,
    "c": 0.18842,
    "h": 309.2
  },
  "luminance": 0.12615
}

Semantic roles & 50–950 ramp

primary
#8A40BA
secondary
#A5C88E
accent
#D84F85
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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