#8A40C1#8A40C1

#8A40C1 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.9% C 0.196 H 307.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A40C1
RGBrgb(138, 64, 193)
HSLhsl(274, 51%, 50%)
HSVhsv(274, 67%, 76%)
CMYKcmyk(28.5%, 66.8%, 0%, 24.3%)
CIE-LABlab(42.64, 53.93, -55.00)
CIE-LCHlch(42.64, 77.03, 314.44°)
OKLaboklab(52.92% 0.1186 -0.1558)
OKLCHoklch(52.92% 0.196 307.3)
XYZxyz(21.9382, 12.9206, 51.7799)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40C1 #77C140
analogous
#4A40C1 #8A40C1 #C140B7
triadic
#8A40C1 #C18A40 #40C18A
tetradic
#8A40C1 #C14A40 #77C140 #40B7C1
square
#8A40C1 #C14A40 #77C140 #40B7C1
split-complementary
#8A40C1 #B7C140 #40C14A
monochromatic
#482166 #693094 #8A40C1 #A66ED0 #C39CDF

Accessibility & contrast

On white

5.86
#8A40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40C1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40C1#FFFFFF#000000##FFFFFF
##8A40C11.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#2265BE
Tritanopia (blue-blind)
#815C7B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a40c1;
/* rgb */ color: rgb(138, 64, 193);
/* oklch */ color: oklch(52.9% 0.196 307.3);
Tailwind
colors: {
  custom: {
    50: '#b07ad4',
    500: '#8a40c1',
    950: '#000000',
  },
}
SCSS
$custom: #8a40c1;
$custom-light: #b07ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40c1",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 274.419,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52917,
    "c": 0.19576,
    "h": 307.3
  },
  "luminance": 0.1292
}

Semantic roles & 50–950 ramp

primary
#8A40C1
secondary
#AACB92
accent
#DA4D8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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