#9142C2#9142C2

#9142C2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 54.1% C 0.196 H 309.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9142C2
RGBrgb(145, 66, 194)
HSLhsl(277, 51%, 51%)
HSVhsv(277, 66%, 76%)
CMYKcmyk(25.3%, 66%, 0%, 23.9%)
CIE-LABlab(43.96, 54.74, -53.41)
CIE-LCHlch(43.96, 76.48, 315.71°)
OKLaboklab(54.08% 0.1254 -0.1509)
OKLCHoklch(54.08% 0.196 309.7)
XYZxyz(23.3610, 13.8117, 52.4638)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142C2 #73C242
analogous
#5142C2 #9142C2 #C242B3
triadic
#9142C2 #C29142 #42C291
tetradic
#9142C2 #C25142 #73C242 #42B3C2
square
#9142C2 #C25142 #73C242 #42B3C2
split-complementary
#9142C2 #B3C242 #42C251
monochromatic
#4D2268 #6F3196 #9142C2 #AC70D1 #C79FE0

Accessibility & contrast

On white

5.58
#9142C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9142C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142C2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142C2#FFFFFF#000000##FFFFFF
##9142C21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#2F69BF
Tritanopia (blue-blind)
#8A5C7C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9142c2;
/* rgb */ color: rgb(145, 66, 194);
/* oklch */ color: oklch(54.1% 0.196 309.7);
Tailwind
colors: {
  custom: {
    50: '#b57cd5',
    500: '#9142c2',
    950: '#000000',
  },
}
SCSS
$custom: #9142c2;
$custom-light: #b57cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9142c2",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 277.031,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.19622,
    "h": 309.7
  },
  "luminance": 0.13811
}

Semantic roles & 50–950 ramp

primary
#9142C2
secondary
#A9CC94
accent
#DB4D83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9142C2

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

Preview Lab → · Contrast checker → · Palette generator →

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