#9142C4#9142C4

#9142C4 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.2% C 0.198 H 309.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9142C4
RGBrgb(145, 66, 196)
HSLhsl(276, 52%, 51%)
HSVhsv(276, 66%, 77%)
CMYKcmyk(26%, 66.3%, 0%, 23.1%)
CIE-LABlab(44.09, 55.19, -54.36)
CIE-LCHlch(44.09, 77.47, 315.43°)
OKLaboklab(54.22% 0.1253 -0.1537)
OKLCHoklch(54.22% 0.198 309.2)
XYZxyz(23.5871, 13.9021, 53.6547)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142C4 #75C442
analogous
#5042C4 #9142C4 #C442B6
triadic
#9142C4 #C49142 #42C491
tetradic
#9142C4 #C45042 #75C442 #42B6C4
square
#9142C4 #C45042 #75C442 #42B6C4
split-complementary
#9142C4 #B6C442 #42C450
monochromatic
#4E216A #703099 #9142C4 #AC71D3 #C79FE1

Accessibility & contrast

On white

5.55
#9142C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9142C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142C4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142C4#FFFFFF#000000##FFFFFF
##9142C41.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#2C69C1
Tritanopia (blue-blind)
#8A5D7D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9142c4;
/* rgb */ color: rgb(145, 66, 196);
/* oklch */ color: oklch(54.2% 0.198 309.2);
Tailwind
colors: {
  custom: {
    50: '#b57cd7',
    500: '#9142c4',
    950: '#000000',
  },
}
SCSS
$custom: #9142c4;
$custom-light: #b57cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9142c4",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 276.462,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54216,
    "c": 0.19828,
    "h": 309.2
  },
  "luminance": 0.13902
}

Semantic roles & 50–950 ramp

primary
#9142C4
secondary
#ABCE94
accent
#DC4C84
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9142C4

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

Preview Lab → · Contrast checker → · Palette generator →

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