#8A40C3#8A40C3

#8A40C3 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.1% C 0.198 H 306.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A40C3
RGBrgb(138, 64, 195)
HSLhsl(274, 52%, 51%)
HSVhsv(274, 67%, 76%)
CMYKcmyk(29.2%, 67.2%, 0%, 23.5%)
CIE-LABlab(42.78, 54.39, -55.95)
CIE-LCHlch(42.78, 78.03, 314.19°)
OKLaboklab(53.06% 0.1184 -0.1585)
OKLCHoklch(53.06% 0.198 306.7)
XYZxyz(22.1629, 13.0104, 52.9629)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40C3 #79C340
analogous
#4840C3 #8A40C3 #C340BA
triadic
#8A40C3 #C38A40 #40C38A
tetradic
#8A40C3 #C34840 #79C340 #40BAC3
square
#8A40C3 #C34840 #79C340 #40BAC3
split-complementary
#8A40C3 #BAC340 #40C348
monochromatic
#492168 #6A2F97 #8A40C3 #A76FD2 #C39DE0

Accessibility & contrast

On white

5.83
#8A40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40C3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40C3#FFFFFF#000000##FFFFFF
##8A40C31.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#1E66C0
Tritanopia (blue-blind)
#805D7C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a40c3;
/* rgb */ color: rgb(138, 64, 195);
/* oklch */ color: oklch(53.1% 0.198 306.7);
Tailwind
colors: {
  custom: {
    50: '#b17ad6',
    500: '#8a40c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a40c3;
$custom-light: #b17ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40c3",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 273.893,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53057,
    "c": 0.19786,
    "h": 306.7
  },
  "luminance": 0.1301
}

Semantic roles & 50–950 ramp

primary
#8A40C3
secondary
#ACCC92
accent
#DC4C8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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