#8A40C4#8A40C4

#8A40C4 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.199 H 306.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A40C4
RGBrgb(138, 64, 196)
HSLhsl(274, 53%, 51%)
HSVhsv(274, 67%, 77%)
CMYKcmyk(29.6%, 67.3%, 0%, 23.1%)
CIE-LABlab(42.85, 54.62, -56.42)
CIE-LCHlch(42.85, 78.53, 314.07°)
OKLaboklab(53.13% 0.1183 -0.1599)
OKLCHoklch(53.13% 0.199 306.5)
XYZxyz(22.2763, 13.0558, 53.5603)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A40C4 #7AC440
analogous
#4840C4 #8A40C4 #C440BC
triadic
#8A40C4 #C48A40 #40C48A
tetradic
#8A40C4 #C44840 #7AC440 #40BCC4
square
#8A40C4 #C44840 #7AC440 #40BCC4
split-complementary
#8A40C4 #BCC440 #40C448
monochromatic
#492069 #6A2F98 #8A40C4 #A76FD2 #C39EE1

Accessibility & contrast

On white

5.82
#8A40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A40C4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A40C4#FFFFFF#000000##FFFFFF
##8A40C41.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#1C66C1
Tritanopia (blue-blind)
#805D7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a40c4;
/* rgb */ color: rgb(138, 64, 196);
/* oklch */ color: oklch(53.1% 0.199 306.5);
Tailwind
colors: {
  custom: {
    50: '#b17ad7',
    500: '#8a40c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a40c4;
$custom-light: #b17ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a40c4",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 273.636,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53128,
    "c": 0.19892,
    "h": 306.5
  },
  "luminance": 0.13056
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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