#9340D2#9340D2

#9340D2 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.2% C 0.216 H 306.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9340D2
RGBrgb(147, 64, 210)
HSLhsl(274, 62%, 54%)
HSVhsv(274, 70%, 82%)
CMYKcmyk(30%, 69.5%, 0%, 17.6%)
CIE-LABlab(44.97, 59.65, -61.02)
CIE-LCHlch(44.97, 85.33, 314.35°)
OKLaboklab(55.2% 0.1285 -0.1731)
OKLCHoklch(55.2% 0.216 306.6)
XYZxyz(25.4964, 14.5232, 62.4204)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340D2 #7FD240
analogous
#4A40D2 #9340D2 #D240C8
triadic
#9340D2 #D29340 #40D293
tetradic
#9340D2 #D24A40 #7FD240 #40C8D2
square
#9340D2 #D24A40 #7FD240 #40C8D2
split-complementary
#9340D2 #C8D240 #40D24A
monochromatic
#521D7B #7329AC #9340D2 #AF72DE #CBA3E9

Accessibility & contrast

On white

5.38
#9340D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9340D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340D2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340D2#FFFFFF#000000##FFFFFF
##9340D21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#0E6BCF
Tritanopia (blue-blind)
#886185
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9340d2;
/* rgb */ color: rgb(147, 64, 210);
/* oklch */ color: oklch(55.2% 0.216 306.6);
Tailwind
colors: {
  custom: {
    50: '#b87be1',
    500: '#9340d2',
    950: '#000000',
  },
}
SCSS
$custom: #9340d2;
$custom-light: #b87be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9340d2",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 274.11,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55203,
    "c": 0.21562,
    "h": 306.6
  },
  "luminance": 0.14523
}

Semantic roles & 50–950 ramp

primary
#9340D2
secondary
#B3D698
accent
#E54389
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9340D2

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

Preview Lab → · Contrast checker → · Palette generator →

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