#8142CC#8142CC

#8142CC is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.203 H 300.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8142CC
RGBrgb(129, 66, 204)
HSLhsl(267, 58%, 53%)
HSVhsv(267, 68%, 80%)
CMYKcmyk(36.8%, 67.6%, 0%, 20%)
CIE-LABlab(42.65, 53.73, -61.43)
CIE-LCHlch(42.65, 81.62, 311.17°)
OKLaboklab(52.92% 0.103 -0.175)
OKLCHoklch(52.92% 0.203 300.5)
XYZxyz(21.8979, 12.9230, 58.4558)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142CC #8DCC42
analogous
#4248CC #8142CC #C642CC
triadic
#8142CC #CC8142 #42CC81
tetradic
#8142CC #CC4248 #8DCC42 #42CCC6
square
#8142CC #CC4248 #8DCC42 #42CCC6
split-complementary
#8142CC #CCC642 #48CC42
monochromatic
#461F74 #632CA4 #8142CC #A172D9 #C1A2E6

Accessibility & contrast

On white

5.86
#8142CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8142CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142CC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142CC#FFFFFF#000000##FFFFFF
##8142CC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#706282
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8142cc;
/* rgb */ color: rgb(129, 66, 204);
/* oklch */ color: oklch(52.9% 0.203 300.5);
Tailwind
colors: {
  custom: {
    50: '#ab7bdc',
    500: '#8142cc',
    950: '#000000',
  },
}
SCSS
$custom: #8142cc;
$custom-light: #ab7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8142cc",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 267.391,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52919,
    "c": 0.20306,
    "h": 300.5
  },
  "luminance": 0.12923
}

Semantic roles & 50–950 ramp

primary
#8142CC
secondary
#B7D397
accent
#E1479B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8142CC

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

Preview Lab → · Contrast checker → · Palette generator →

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