#9142D7#9142D7

#9142D7 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.6% C 0.218 H 304.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9142D7
RGBrgb(145, 66, 215)
HSLhsl(272, 65%, 55%)
HSVhsv(272, 69%, 84%)
CMYKcmyk(32.6%, 69.3%, 0%, 15.7%)
CIE-LABlab(45.39, 59.50, -63.22)
CIE-LCHlch(45.39, 86.82, 313.26°)
OKLaboklab(55.56% 0.1231 -0.1797)
OKLCHoklch(55.56% 0.218 304.4)
XYZxyz(25.8882, 14.8226, 65.7740)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142D7 #88D742
analogous
#4642D7 #9142D7 #D742D3
triadic
#9142D7 #D79142 #42D791
tetradic
#9142D7 #D74642 #88D742 #42D3D7
square
#9142D7 #D74642 #88D742 #42D3D7
split-complementary
#9142D7 #D3D742 #42D746
monochromatic
#521C83 #7226B5 #9142D7 #AE75E2 #CCA7EC

Accessibility & contrast

On white

5.30
#9142D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9142D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142D7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142D7#FFFFFF#000000##FFFFFF
##9142D71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#846588
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9142d7;
/* rgb */ color: rgb(145, 66, 215);
/* oklch */ color: oklch(55.6% 0.218 304.4);
Tailwind
colors: {
  custom: {
    50: '#b77ce4',
    500: '#9142d7',
    950: '#000000',
  },
}
SCSS
$custom: #9142d7;
$custom-light: #b77ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#9142d7",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 271.812,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.21784,
    "h": 304.4
  },
  "luminance": 0.14822
}

Semantic roles & 50–950 ramp

primary
#9142D7
secondary
#B9DA9B
accent
#E8408F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9142D7

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

Preview Lab → · Contrast checker → · Palette generator →

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