#9340D6#9340D6

#9340D6 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.5% C 0.220 H 305.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9340D6
RGBrgb(147, 64, 214)
HSLhsl(273, 65%, 55%)
HSVhsv(273, 70%, 84%)
CMYKcmyk(31.3%, 70.1%, 0%, 16.1%)
CIE-LABlab(45.26, 60.55, -62.86)
CIE-LCHlch(45.26, 87.27, 313.93°)
OKLaboklab(55.49% 0.1279 -0.1786)
OKLCHoklch(55.49% 0.22 305.6)
XYZxyz(26.0009, 14.7251, 65.0777)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340D6 #83D640
analogous
#4840D6 #9340D6 #D640CE
triadic
#9340D6 #D69340 #40D693
tetradic
#9340D6 #D64840 #83D640 #40CED6
square
#9340D6 #D64840 #83D640 #40CED6
split-complementary
#9340D6 #CED640 #40D648
monochromatic
#531B80 #7426B2 #9340D6 #AF72E1 #CCA5EC

Accessibility & contrast

On white

5.32
#9340D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9340D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340D6
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340D6#FFFFFF#000000##FFFFFF
##9340D61.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#876387
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9340d6;
/* rgb */ color: rgb(147, 64, 214);
/* oklch */ color: oklch(55.5% 0.220 305.6);
Tailwind
colors: {
  custom: {
    50: '#b87be4',
    500: '#9340d6',
    950: '#000000',
  },
}
SCSS
$custom: #9340d6;
$custom-light: #b87be4;
$custom-dark: #000000;
JSON
{
  "hex": "#9340d6",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 273.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55492,
    "c": 0.21965,
    "h": 305.6
  },
  "luminance": 0.14725
}

Semantic roles & 50–950 ramp

primary
#9340D6
secondary
#B6D999
accent
#E8408B
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9340D6

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

Preview Lab → · Contrast checker → · Palette generator →

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