#8142C4#8142C4

#8142C4 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.194 H 302.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8142C4
RGBrgb(129, 66, 196)
HSLhsl(269, 52%, 51%)
HSVhsv(269, 66%, 77%)
CMYKcmyk(34.2%, 66.3%, 0%, 23.1%)
CIE-LABlab(42.08, 51.77, -57.72)
CIE-LCHlch(42.08, 77.53, 311.89°)
OKLaboklab(52.33% 0.104 -0.1641)
OKLCHoklch(52.33% 0.194 302.4)
XYZxyz(20.9629, 12.5490, 53.5317)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142C4 #85C442
analogous
#4244C4 #8142C4 #C242C4
triadic
#8142C4 #C48142 #42C481
tetradic
#8142C4 #C44244 #85C442 #42C4C2
square
#8142C4 #C44244 #85C442 #42C4C2
split-complementary
#8142C4 #C4C242 #44C442
monochromatic
#45216A #633099 #8142C4 #A071D3 #BF9FE1

Accessibility & contrast

On white

5.98
#8142C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8142C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142C4
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142C4#FFFFFF#000000##FFFFFF
##8142C41.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0663C1
Tritanopia (blue-blind)
#735F7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8142c4;
/* rgb */ color: rgb(129, 66, 196);
/* oklch */ color: oklch(52.3% 0.194 302.4);
Tailwind
colors: {
  custom: {
    50: '#aa7ad7',
    500: '#8142c4',
    950: '#000000',
  },
}
SCSS
$custom: #8142c4;
$custom-light: #aa7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8142c4",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 269.077,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52329,
    "c": 0.19425,
    "h": 302.4
  },
  "luminance": 0.12549
}

Semantic roles & 50–950 ramp

primary
#8142C4
secondary
#B2CE94
accent
#DC4C96
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8142C4

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

Preview Lab → · Contrast checker → · Palette generator →

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