#8142C6#8142C6

#8142C6 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.5% C 0.196 H 301.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8142C6
RGBrgb(129, 66, 198)
HSLhsl(269, 54%, 52%)
HSVhsv(269, 67%, 78%)
CMYKcmyk(34.8%, 66.7%, 0%, 22.4%)
CIE-LABlab(42.22, 52.26, -58.65)
CIE-LCHlch(42.22, 78.56, 311.70°)
OKLaboklab(52.48% 0.1037 -0.1668)
OKLCHoklch(52.48% 0.196 301.9)
XYZxyz(21.1921, 12.6407, 54.7386)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142C6 #87C642
analogous
#4245C6 #8142C6 #C342C6
triadic
#8142C6 #C68142 #42C681
tetradic
#8142C6 #C64245 #87C642 #42C6C3
square
#8142C6 #C64245 #87C642 #42C6C3
split-complementary
#8142C6 #C6C342 #45C642
monochromatic
#45216D #632F9C #8142C6 #A071D4 #C0A0E2

Accessibility & contrast

On white

5.95
#8142C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8142C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142C6
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142C6#FFFFFF#000000##FFFFFF
##8142C61.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)
#0063CA
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#73607E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8142c6;
/* rgb */ color: rgb(129, 66, 198);
/* oklch */ color: oklch(52.5% 0.196 301.9);
Tailwind
colors: {
  custom: {
    50: '#ab7bd8',
    500: '#8142c6',
    950: '#000000',
  },
}
SCSS
$custom: #8142c6;
$custom-light: #ab7bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8142c6",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 268.636,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52475,
    "c": 0.19645,
    "h": 301.9
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#8142C6
secondary
#B3CF95
accent
#DD4B97
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8142C6

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

Preview Lab → · Contrast checker → · Palette generator →

#8142C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva