#9340D1#9340D1

#9340D1 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.215 H 306.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9340D1
RGBrgb(147, 64, 209)
HSLhsl(274, 61%, 54%)
HSVhsv(274, 69%, 82%)
CMYKcmyk(29.7%, 69.4%, 0%, 18%)
CIE-LABlab(44.90, 59.42, -60.55)
CIE-LCHlch(44.90, 84.84, 314.46°)
OKLaboklab(55.13% 0.1286 -0.1718)
OKLCHoklch(55.13% 0.215 306.8)
XYZxyz(25.3722, 14.4736, 61.7663)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340D1 #7ED140
analogous
#4A40D1 #9340D1 #D140C6
triadic
#9340D1 #D19340 #40D193
tetradic
#9340D1 #D14A40 #7ED140 #40C6D1
square
#9340D1 #D14A40 #7ED140 #40C6D1
split-complementary
#9340D1 #C6D140 #40D14A
monochromatic
#521D79 #7329AB #9340D1 #AF71DD #CBA3E9

Accessibility & contrast

On white

5.39
#9340D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9340D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340D1
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340D1#FFFFFF#000000##FFFFFF
##9340D11.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#126BCE
Tritanopia (blue-blind)
#896184
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9340d1;
/* rgb */ color: rgb(147, 64, 209);
/* oklch */ color: oklch(55.1% 0.215 306.8);
Tailwind
colors: {
  custom: {
    50: '#b87be0',
    500: '#9340d1',
    950: '#000000',
  },
}
SCSS
$custom: #9340d1;
$custom-light: #b87be0;
$custom-dark: #000000;
JSON
{
  "hex": "#9340d1",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 274.345,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55131,
    "c": 0.21461,
    "h": 306.8
  },
  "luminance": 0.14473
}

Semantic roles & 50–950 ramp

primary
#9340D1
secondary
#B2D597
accent
#E44488
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9340D1

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

Preview Lab → · Contrast checker → · Palette generator →

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