#9142DD#9142DD

#9142DD is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.224 H 303.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9142DD
RGBrgb(145, 66, 221)
HSLhsl(271, 70%, 56%)
HSVhsv(271, 70%, 87%)
CMYKcmyk(34.4%, 70.1%, 0%, 13.3%)
CIE-LABlab(45.82, 60.88, -65.95)
CIE-LCHlch(45.82, 89.76, 312.71°)
OKLaboklab(56% 0.1222 -0.1877)
OKLCHoklch(56% 0.224 303.1)
XYZxyz(26.6734, 15.1366, 69.9090)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142DD #8EDD42
analogous
#4442DD #9142DD #DD42DB
triadic
#9142DD #DD9142 #42DD91
tetradic
#9142DD #DD4442 #8EDD42 #42DBDD
square
#9142DD #DD4442 #8EDD42 #42DBDD
split-complementary
#9142DD #DBDD42 #42DD44
monochromatic
#53198C #7222BF #9142DD #AF76E6 #CDAAF0

Accessibility & contrast

On white

5.21
#9142DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9142DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142DD
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142DD#FFFFFF#000000##FFFFFF
##9142DD1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE2
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#82678B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9142dd;
/* rgb */ color: rgb(145, 66, 221);
/* oklch */ color: oklch(56.0% 0.224 303.1);
Tailwind
colors: {
  custom: {
    50: '#b77de9',
    500: '#9142dd',
    950: '#000000',
  },
}
SCSS
$custom: #9142dd;
$custom-light: #b77de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9142dd",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 270.581,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55998,
    "c": 0.224,
    "h": 303.1
  },
  "luminance": 0.15137
}

Semantic roles & 50–950 ramp

primary
#9142DD
secondary
#BDDD9D
accent
#EC3B92
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9142DD

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

Preview Lab → · Contrast checker → · Palette generator →

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