#8B40CA#8B40CA

#8B40CA is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.205 H 305.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8B40CA
RGBrgb(139, 64, 202)
HSLhsl(273, 57%, 52%)
HSVhsv(273, 68%, 79%)
CMYKcmyk(31.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(43.39, 56.22, -59.02)
CIE-LCHlch(43.39, 81.50, 313.61°)
OKLaboklab(53.68% 0.1189 -0.1675)
OKLCHoklch(53.68% 0.205 305.4)
XYZxyz(23.1392, 13.4202, 57.2370)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40CA #7FCA40
analogous
#4640CA #8B40CA #CA40C4
triadic
#8B40CA #CA8B40 #40CA8B
tetradic
#8B40CA #CA4640 #7FCA40 #40C4CA
square
#8B40CA #CA4640 #7FCA40 #40C4CA
split-complementary
#8B40CA #C4CA40 #40CA46
monochromatic
#4B1F70 #6B2CA0 #8B40CA #A870D7 #C5A0E5

Accessibility & contrast

On white

5.70
#8B40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8B40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40CA
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40CA#FFFFFF#000000##FFFFFF
##8B40CA1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0E67C7
Tritanopia (blue-blind)
#805F80
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8b40ca;
/* rgb */ color: rgb(139, 64, 202);
/* oklch */ color: oklch(53.7% 0.205 305.4);
Tailwind
colors: {
  custom: {
    50: '#b27adb',
    500: '#8b40ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b40ca;
$custom-light: #b27adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40ca",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 272.609,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53675,
    "c": 0.20544,
    "h": 305.4
  },
  "luminance": 0.1342
}

Semantic roles & 50–950 ramp

primary
#8B40CA
secondary
#B0D195
accent
#E0488D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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