#8140CB#8140CB

#8140CB is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.204 H 301.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8140CB
RGBrgb(129, 64, 203)
HSLhsl(268, 57%, 52%)
HSVhsv(268, 68%, 80%)
CMYKcmyk(36.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(42.22, 54.45, -61.54)
CIE-LCHlch(42.22, 82.17, 311.50°)
OKLaboklab(52.59% 0.1052 -0.1753)
OKLCHoklch(52.59% 0.204 301)
XYZxyz(21.6635, 12.6456, 57.7879)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8140CB #8ACB40
analogous
#4044CB #8140CB #C740CB
triadic
#8140CB #CB8140 #40CB81
tetradic
#8140CB #CB4044 #8ACB40 #40CBC7
square
#8140CB #CB4044 #8ACB40 #40CBC7
split-complementary
#8140CB #CBC740 #44CB40
monochromatic
#461F72 #632CA2 #8140CB #A170D8 #C0A0E5

Accessibility & contrast

On white

5.95
#8140CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8140CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8140CB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8140CB#FFFFFF#000000##FFFFFF
##8140CB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#716181
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8140cb;
/* rgb */ color: rgb(129, 64, 203);
/* oklch */ color: oklch(52.6% 0.204 301.0);
Tailwind
colors: {
  custom: {
    50: '#ab7adc',
    500: '#8140cb',
    950: '#000000',
  },
}
SCSS
$custom: #8140cb;
$custom-light: #ab7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8140cb",
  "rgb": {
    "r": 129,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 268.058,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52594,
    "c": 0.20445,
    "h": 301
  },
  "luminance": 0.12646
}

Semantic roles & 50–950 ramp

primary
#8140CB
secondary
#B5D295
accent
#E04799
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8140CB

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

Preview Lab → · Contrast checker → · Palette generator →

#8140CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva