#9340D5#9340D5

#9340D5 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.219 H 305.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9340D5
RGBrgb(147, 64, 213)
HSLhsl(273, 64%, 54%)
HSVhsv(273, 70%, 84%)
CMYKcmyk(31%, 70%, 0%, 16.5%)
CIE-LABlab(45.18, 60.32, -62.40)
CIE-LCHlch(45.18, 86.79, 314.03°)
OKLaboklab(55.42% 0.1281 -0.1772)
OKLCHoklch(55.42% 0.219 305.9)
XYZxyz(25.8736, 14.6742, 64.4072)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340D5 #82D540
analogous
#4940D5 #9340D5 #D540CC
triadic
#9340D5 #D59340 #40D593
tetradic
#9340D5 #D54940 #82D540 #40CCD5
square
#9340D5 #D54940 #82D540 #40CCD5
split-complementary
#9340D5 #CCD540 #40D549
monochromatic
#531C7F #7427B1 #9340D5 #AF72E0 #CCA4EB

Accessibility & contrast

On white

5.34
#9340D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9340D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340D5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340D5#FFFFFF#000000##FFFFFF
##9340D51.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#876286
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9340d5;
/* rgb */ color: rgb(147, 64, 213);
/* oklch */ color: oklch(55.4% 0.219 305.9);
Tailwind
colors: {
  custom: {
    50: '#b87be3',
    500: '#9340d5',
    950: '#000000',
  },
}
SCSS
$custom: #9340d5;
$custom-light: #b87be3;
$custom-dark: #000000;
JSON
{
  "hex": "#9340d5",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 273.423,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55419,
    "c": 0.21864,
    "h": 305.9
  },
  "luminance": 0.14674
}

Semantic roles & 50–950 ramp

primary
#9340D5
secondary
#B5D899
accent
#E7418A
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9340D5

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

Preview Lab → · Contrast checker → · Palette generator →

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