#9142E2#9142E2

#9142E2 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.229 H 302.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9142E2
RGBrgb(145, 66, 226)
HSLhsl(270, 73%, 57%)
HSVhsv(270, 71%, 89%)
CMYKcmyk(35.8%, 70.8%, 0%, 11.4%)
CIE-LABlab(46.19, 62.05, -68.20)
CIE-LCHlch(46.19, 92.20, 312.30°)
OKLaboklab(56.37% 0.1213 -0.1943)
OKLCHoklch(56.37% 0.229 302)
XYZxyz(27.3494, 15.4071, 73.4698)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142E2 #93E242
analogous
#4243E2 #9142E2 #E142E2
triadic
#9142E2 #E29142 #42E291
tetradic
#9142E2 #E24243 #93E242 #42E2E1
square
#9142E2 #E24243 #93E242 #42E2E1
split-complementary
#9142E2 #E2E142 #43E242
monochromatic
#541793 #721FC8 #9142E2 #B077EA #CFACF2

Accessibility & contrast

On white

5.15
#9142E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9142E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142E2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142E2#FFFFFF#000000##FFFFFF
##9142E21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#80698E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9142e2;
/* rgb */ color: rgb(145, 66, 226);
/* oklch */ color: oklch(56.4% 0.229 302.0);
Tailwind
colors: {
  custom: {
    50: '#b77dec',
    500: '#9142e2',
    950: '#000000',
  },
}
SCSS
$custom: #9142e2;
$custom-light: #b77dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9142e2",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 269.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56372,
    "c": 0.22911,
    "h": 302
  },
  "luminance": 0.15407
}

Semantic roles & 50–950 ramp

primary
#9142E2
secondary
#C0E09F
accent
#F03895
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9142E2

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

Preview Lab → · Contrast checker → · Palette generator →

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