#9340CC#9340CC

#9340CC is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.8% C 0.210 H 308.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9340CC
RGBrgb(147, 64, 204)
HSLhsl(276, 58%, 53%)
HSVhsv(276, 69%, 80%)
CMYKcmyk(27.9%, 68.6%, 0%, 20%)
CIE-LABlab(44.56, 58.31, -58.23)
CIE-LCHlch(44.56, 82.40, 315.04°)
OKLaboklab(54.78% 0.1293 -0.165)
OKLCHoklch(54.78% 0.21 308.1)
XYZxyz(24.7629, 14.2298, 58.5572)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340CC #79CC40
analogous
#4D40CC #9340CC #CC40BF
triadic
#9340CC #CC9340 #40CC93
tetradic
#9340CC #CC4D40 #79CC40 #40BFCC
square
#9340CC #CC4D40 #79CC40 #40BFCC
split-complementary
#9340CC #BFCC40 #40CC4D
monochromatic
#511F73 #732CA3 #9340CC #AE70D9 #CAA1E6

Accessibility & contrast

On white

5.46
#9340CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9340CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340CC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340CC#FFFFFF#000000##FFFFFF
##9340CC1.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)
#0066D0
Deuteranopia (green-blind)
#1F6AC9
Tritanopia (blue-blind)
#8A5F81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9340cc;
/* rgb */ color: rgb(147, 64, 204);
/* oklch */ color: oklch(54.8% 0.210 308.1);
Tailwind
colors: {
  custom: {
    50: '#b77bdc',
    500: '#9340cc',
    950: '#000000',
  },
}
SCSS
$custom: #9340cc;
$custom-light: #b77bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9340cc",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 275.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54777,
    "c": 0.20957,
    "h": 308.1
  },
  "luminance": 0.14229
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9340CC

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

Preview Lab → · Contrast checker → · Palette generator →

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