#8140D4#8140D4

#8140D4 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.214 H 299.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8140D4
RGBrgb(129, 64, 212)
HSLhsl(266, 63%, 54%)
HSVhsv(266, 70%, 83%)
CMYKcmyk(39.2%, 69.8%, 0%, 16.9%)
CIE-LABlab(42.89, 56.67, -65.64)
CIE-LCHlch(42.89, 86.72, 310.80°)
OKLaboklab(53.28% 0.1038 -0.1874)
OKLCHoklch(53.28% 0.214 299)
XYZxyz(22.7673, 13.0871, 63.6011)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8140D4 #93D440
analogous
#4049D4 #8140D4 #CB40D4
triadic
#8140D4 #D48140 #40D481
tetradic
#8140D4 #D44049 #93D440 #40D4CB
square
#8140D4 #D44049 #93D440 #40D4CB
split-complementary
#8140D4 #D4CB40 #49D440
monochromatic
#471C7D #6327AF #8140D4 #A272DF #C3A4EA

Accessibility & contrast

On white

5.81
#8140D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8140D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8140D4
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8140D4#FFFFFF#000000##FFFFFF
##8140D41.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#6D6486
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8140d4;
/* rgb */ color: rgb(129, 64, 212);
/* oklch */ color: oklch(53.3% 0.214 299.0);
Tailwind
colors: {
  custom: {
    50: '#ac7ae2',
    500: '#8140d4',
    950: '#000000',
  },
}
SCSS
$custom: #8140d4;
$custom-light: #ac7ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8140d4",
  "rgb": {
    "r": 129,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 266.351,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53282,
    "c": 0.21418,
    "h": 299
  },
  "luminance": 0.13087
}

Semantic roles & 50–950 ramp

primary
#8140D4
secondary
#BCD798
accent
#E6429E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110915
muted
#807B84

Preview Lab

Preview with #8140D4

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

Preview Lab → · Contrast checker → · Palette generator →

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