#9342CB#9342CB

#9342CB is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.206 H 308.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9342CB
RGBrgb(147, 66, 203)
HSLhsl(275, 57%, 53%)
HSVhsv(275, 67%, 80%)
CMYKcmyk(27.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(44.82, 57.18, -57.24)
CIE-LCHlch(44.82, 80.90, 314.97°)
OKLaboklab(54.94% 0.1272 -0.1621)
OKLCHoklch(54.94% 0.206 308.1)
XYZxyz(24.7581, 14.4116, 57.9658)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9342CB #7ACB42
analogous
#4E42CB #9342CB #CB42BF
triadic
#9342CB #CB9342 #42CB93
tetradic
#9342CB #CB4E42 #7ACB42 #42BFCB
square
#9342CB #CB4E42 #7ACB42 #42BFCB
split-complementary
#9342CB #BFCB42 #42CB4E
monochromatic
#512073 #732DA3 #9342CB #AE72D8 #CAA2E5

Accessibility & contrast

On white

5.41
#9342CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9342CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9342CB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9342CB#FFFFFF#000000##FFFFFF
##9342CB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#246BC8
Tritanopia (blue-blind)
#8A6081
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9342cb;
/* rgb */ color: rgb(147, 66, 203);
/* oklch */ color: oklch(54.9% 0.206 308.1);
Tailwind
colors: {
  custom: {
    50: '#b77cdc',
    500: '#9342cb',
    950: '#000000',
  },
}
SCSS
$custom: #9342cb;
$custom-light: #b77cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9342cb",
  "rgb": {
    "r": 147,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 275.474,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54939,
    "c": 0.20604,
    "h": 308.1
  },
  "luminance": 0.14411
}

Semantic roles & 50–950 ramp

primary
#9342CB
secondary
#AFD297
accent
#E04886
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9342CB

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

Preview Lab → · Contrast checker → · Palette generator →

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