#9142DE#9142DE

#9142DE is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.225 H 302.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9142DE
RGBrgb(145, 66, 222)
HSLhsl(270, 70%, 56%)
HSVhsv(270, 70%, 87%)
CMYKcmyk(34.7%, 70.3%, 0%, 12.9%)
CIE-LABlab(45.89, 61.12, -66.40)
CIE-LCHlch(45.89, 90.25, 312.63°)
OKLaboklab(56.07% 0.122 -0.1891)
OKLCHoklch(56.07% 0.225 302.8)
XYZxyz(26.8070, 15.1901, 70.6128)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142DE #8FDE42
analogous
#4342DE #9142DE #DE42DD
triadic
#9142DE #DE9142 #42DE91
tetradic
#9142DE #DE4342 #8FDE42 #42DDDE
square
#9142DE #DE4342 #8FDE42 #42DDDE
split-complementary
#9142DE #DDDE42 #42DE43
monochromatic
#54198D #7222C1 #9142DE #AF76E7 #CEAAF0

Accessibility & contrast

On white

5.20
#9142DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9142DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142DE
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142DE#FFFFFF#000000##FFFFFF
##9142DE1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE3
Deuteranopia (green-blind)
#006CDB
Tritanopia (blue-blind)
#81678C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9142de;
/* rgb */ color: rgb(145, 66, 222);
/* oklch */ color: oklch(56.1% 0.225 302.8);
Tailwind
colors: {
  custom: {
    50: '#b77de9',
    500: '#9142de',
    950: '#000000',
  },
}
SCSS
$custom: #9142de;
$custom-light: #b77de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9142de",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 270.385,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56072,
    "c": 0.22502,
    "h": 302.8
  },
  "luminance": 0.1519
}

Semantic roles & 50–950 ramp

primary
#9142DE
secondary
#BDDE9E
accent
#ED3B93
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9142DE

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

Preview Lab → · Contrast checker → · Palette generator →

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