#9142D2#9142D2

#9142D2 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.213 H 305.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9142D2
RGBrgb(145, 66, 210)
HSLhsl(273, 62%, 54%)
HSVhsv(273, 69%, 82%)
CMYKcmyk(31%, 68.6%, 0%, 17.6%)
CIE-LABlab(45.04, 58.35, -60.92)
CIE-LCHlch(45.04, 84.36, 313.76°)
OKLaboklab(55.19% 0.1238 -0.173)
OKLCHoklch(55.19% 0.213 305.6)
XYZxyz(25.2556, 14.5695, 62.4420)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142D2 #83D242
analogous
#4942D2 #9142D2 #D242CB
triadic
#9142D2 #D29142 #42D291
tetradic
#9142D2 #D24942 #83D242 #42CBD2
square
#9142D2 #D24942 #83D242 #42CBD2
split-complementary
#9142D2 #CBD242 #42D249
monochromatic
#511E7C #7229AD #9142D2 #AE73DE #CBA5EA

Accessibility & contrast

On white

5.37
#9142D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9142D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142D2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142D2#FFFFFF#000000##FFFFFF
##9142D21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#0D6BCF
Tritanopia (blue-blind)
#856385
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9142d2;
/* rgb */ color: rgb(145, 66, 210);
/* oklch */ color: oklch(55.2% 0.213 305.6);
Tailwind
colors: {
  custom: {
    50: '#b67ce1',
    500: '#9142d2',
    950: '#000000',
  },
}
SCSS
$custom: #9142d2;
$custom-light: #b67ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9142d2",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 272.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55194,
    "c": 0.21269,
    "h": 305.6
  },
  "luminance": 0.14569
}

Semantic roles & 50–950 ramp

primary
#9142D2
secondary
#B5D799
accent
#E5438C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9142D2

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

Preview Lab → · Contrast checker → · Palette generator →

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