#8142C8#8142C8

#8142C8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.199 H 301.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8142C8
RGBrgb(129, 66, 200)
HSLhsl(268, 55%, 52%)
HSVhsv(268, 67%, 78%)
CMYKcmyk(35.5%, 67%, 0%, 21.6%)
CIE-LABlab(42.36, 52.75, -59.58)
CIE-LCHlch(42.36, 79.58, 311.52°)
OKLaboklab(52.62% 0.1035 -0.1696)
OKLCHoklch(52.62% 0.199 301.4)
XYZxyz(21.4243, 12.7336, 55.9615)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142C8 #89C842
analogous
#4246C8 #8142C8 #C442C8
triadic
#8142C8 #C88142 #42C881
tetradic
#8142C8 #C84246 #89C842 #42C8C4
square
#8142C8 #C84246 #89C842 #42C8C4
split-complementary
#8142C8 #C8C442 #46C842
monochromatic
#45206F #632E9F #8142C8 #A171D6 #C0A1E4

Accessibility & contrast

On white

5.92
#8142C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8142C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142C8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142C8#FFFFFF#000000##FFFFFF
##8142C81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#726180
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8142c8;
/* rgb */ color: rgb(129, 66, 200);
/* oklch */ color: oklch(52.6% 0.199 301.4);
Tailwind
colors: {
  custom: {
    50: '#ab7bda',
    500: '#8142c8',
    950: '#000000',
  },
}
SCSS
$custom: #8142c8;
$custom-light: #ab7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#8142c8",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 268.209,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.19865,
    "h": 301.4
  },
  "luminance": 0.12734
}

Semantic roles & 50–950 ramp

primary
#8142C8
secondary
#B5D096
accent
#DE4A98
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8142C8

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

Preview Lab → · Contrast checker → · Palette generator →

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