#9142CD#9142CD

#9142CD is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.208 H 306.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9142CD
RGBrgb(145, 66, 205)
HSLhsl(274, 58%, 53%)
HSVhsv(274, 68%, 80%)
CMYKcmyk(29.3%, 67.8%, 0%, 19.6%)
CIE-LABlab(44.69, 57.21, -58.60)
CIE-LCHlch(44.69, 81.90, 314.31°)
OKLaboklab(54.84% 0.1244 -0.1661)
OKLCHoklch(54.84% 0.208 306.8)
XYZxyz(24.6424, 14.3242, 59.2124)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142CD #7ECD42
analogous
#4B42CD #9142CD #CD42C3
triadic
#9142CD #CD9142 #42CD91
tetradic
#9142CD #CD4B42 #7ECD42 #42C3CD
square
#9142CD #CD4B42 #7ECD42 #42C3CD
split-complementary
#9142CD #C3CD42 #42CD4B
monochromatic
#501F76 #712CA6 #9142CD #AD72DA #C9A3E7

Accessibility & contrast

On white

5.43
#9142CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9142CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142CD
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142CD#FFFFFF#000000##FFFFFF
##9142CD1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1C6ACA
Tritanopia (blue-blind)
#876182
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9142cd;
/* rgb */ color: rgb(145, 66, 205);
/* oklch */ color: oklch(54.8% 0.208 306.8);
Tailwind
colors: {
  custom: {
    50: '#b67cdd',
    500: '#9142cd',
    950: '#000000',
  },
}
SCSS
$custom: #9142cd;
$custom-light: #b67cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9142cd",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 274.101,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54839,
    "c": 0.20755,
    "h": 306.8
  },
  "luminance": 0.14324
}

Semantic roles & 50–950 ramp

primary
#9142CD
secondary
#B1D397
accent
#E14689
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9142CD

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

Preview Lab → · Contrast checker → · Palette generator →

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