#9340CB#9340CB

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

Color values

HEX#9340CB
RGBrgb(147, 64, 203)
HSLhsl(276, 57%, 52%)
HSVhsv(276, 68%, 80%)
CMYKcmyk(27.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(44.49, 58.08, -57.76)
CIE-LCHlch(44.49, 81.91, 315.16°)
OKLaboklab(54.71% 0.1294 -0.1636)
OKLCHoklch(54.71% 0.209 308.3)
XYZxyz(24.6433, 14.1820, 57.9275)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340CB #78CB40
analogous
#4D40CB #9340CB #CB40BE
triadic
#9340CB #CB9340 #40CB93
tetradic
#9340CB #CB4D40 #78CB40 #40BECB
square
#9340CB #CB4D40 #78CB40 #40BECB
split-complementary
#9340CB #BECB40 #40CB4D
monochromatic
#501F72 #722CA2 #9340CB #AE70D8 #C9A0E5

Accessibility & contrast

On white

5.47
#9340CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9340CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340CB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340CB#FFFFFF#000000##FFFFFF
##9340CB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#216AC8
Tritanopia (blue-blind)
#8A5E81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9340cb;
/* rgb */ color: rgb(147, 64, 203);
/* oklch */ color: oklch(54.7% 0.209 308.3);
Tailwind
colors: {
  custom: {
    50: '#b77bdc',
    500: '#9340cb',
    950: '#000000',
  },
}
SCSS
$custom: #9340cb;
$custom-light: #b77bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9340cb",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 275.827,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54707,
    "c": 0.20855,
    "h": 308.3
  },
  "luminance": 0.14182
}

Semantic roles & 50–950 ramp

primary
#9340CB
secondary
#AED295
accent
#E04785
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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