#8A40B9#8A40B9

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

Color values

HEX#8A40B9
RGBrgb(138, 64, 185)
HSLhsl(277, 49%, 49%)
HSVhsv(277, 65%, 73%)
CMYKcmyk(25.4%, 65.4%, 0%, 27.5%)
CIE-LABlab(42.11, 52.12, -51.18)
CIE-LCHlch(42.11, 73.04, 315.52°)
OKLaboklab(52.37% 0.1192 -0.1445)
OKLCHoklch(52.37% 0.187 309.5)
XYZxyz(21.0699, 12.5732, 47.2065)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40B9 #6FB940
analogous
#4E40B9 #8A40B9 #B940AC
triadic
#8A40B9 #B98A40 #40B98A
tetradic
#8A40B9 #B94E40 #6FB940 #40ACB9
square
#8A40B9 #B94E40 #6FB940 #40ACB9
split-complementary
#8A40B9 #ACB940 #40B94E
monochromatic
#46215E #68308C #8A40B9 #A66BCC #C198DB

Accessibility & contrast

On white

5.98
#8A40B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A40B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40B9
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40B9#FFFFFF#000000##FFFFFF
##8A40B91.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#2E64B6
Tritanopia (blue-blind)
#835977
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a40b9;
/* rgb */ color: rgb(138, 64, 185);
/* oklch */ color: oklch(52.4% 0.187 309.5);
Tailwind
colors: {
  custom: {
    50: '#b07acf',
    500: '#8a40b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a40b9;
$custom-light: #b07acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40b9",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 276.694,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52366,
    "c": 0.18737,
    "h": 309.5
  },
  "luminance": 0.12573
}

Semantic roles & 50–950 ramp

primary
#8A40B9
secondary
#A4C78E
accent
#D85085
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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