#9142CB#9142CB

#9142CB is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.205 H 307.3°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9142CB
RGBrgb(145, 66, 203)
HSLhsl(275, 57%, 53%)
HSVhsv(275, 67%, 80%)
CMYKcmyk(28.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(44.56, 56.76, -57.67)
CIE-LCHlch(44.56, 80.91, 314.54°)
OKLaboklab(54.7% 0.1246 -0.1634)
OKLCHoklch(54.7% 0.205 307.3)
XYZxyz(24.4025, 14.2283, 57.9491)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9142CB #7CCB42
analogous
#4D42CB #9142CB #CB42C0
triadic
#9142CB #CB9142 #42CB91
tetradic
#9142CB #CB4D42 #7CCB42 #42C0CB
square
#9142CB #CB4D42 #7CCB42 #42C0CB
split-complementary
#9142CB #C0CB42 #42CB4D
monochromatic
#502073 #712DA3 #9142CB #AD72D8 #C9A2E5

Accessibility & contrast

On white

5.46
#9142CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9142CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9142CB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9142CB#FFFFFF#000000##FFFFFF
##9142CB1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#206AC8
Tritanopia (blue-blind)
#886081
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9142cb;
/* rgb */ color: rgb(145, 66, 203);
/* oklch */ color: oklch(54.7% 0.205 307.3);
Tailwind
colors: {
  custom: {
    50: '#b67cdc',
    500: '#9142cb',
    950: '#000000',
  },
}
SCSS
$custom: #9142cb;
$custom-light: #b67cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9142cb",
  "rgb": {
    "r": 145,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 274.599,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54698,
    "c": 0.20548,
    "h": 307.3
  },
  "luminance": 0.14228
}

Semantic roles & 50–950 ramp

primary
#9142CB
secondary
#B0D297
accent
#E04888
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9142CB

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

Preview Lab → · Contrast checker → · Palette generator →

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