#8B40C3#8B40C3

#8B40C3 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.2% C 0.198 H 307.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8B40C3
RGBrgb(139, 64, 195)
HSLhsl(274, 52%, 51%)
HSVhsv(274, 67%, 76%)
CMYKcmyk(28.7%, 67.2%, 0%, 23.5%)
CIE-LABlab(42.91, 54.61, -55.73)
CIE-LCHlch(42.91, 78.02, 314.41°)
OKLaboklab(53.18% 0.1197 -0.1579)
OKLCHoklch(53.18% 0.198 307.2)
XYZxyz(22.3291, 13.0962, 52.9707)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40C3 #78C340
analogous
#4940C3 #8B40C3 #C340B9
triadic
#8B40C3 #C38B40 #40C38B
tetradic
#8B40C3 #C34940 #78C340 #40B9C3
square
#8B40C3 #C34940 #78C340 #40B9C3
split-complementary
#8B40C3 #B9C340 #40C349
monochromatic
#492168 #6A2F97 #8B40C3 #A76FD2 #C49DE0

Accessibility & contrast

On white

5.80
#8B40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8B40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40C3
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40C3#FFFFFF#000000##FFFFFF
##8B40C31.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#2066C0
Tritanopia (blue-blind)
#825C7C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b40c3;
/* rgb */ color: rgb(139, 64, 195);
/* oklch */ color: oklch(53.2% 0.198 307.2);
Tailwind
colors: {
  custom: {
    50: '#b17ad6',
    500: '#8b40c3',
    950: '#000000',
  },
}
SCSS
$custom: #8b40c3;
$custom-light: #b17ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40c3",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 274.351,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53177,
    "c": 0.19813,
    "h": 307.2
  },
  "luminance": 0.13096
}

Semantic roles & 50–950 ramp

primary
#8B40C3
secondary
#ABCC92
accent
#DC4C89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8B40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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