#9340DF#9340DF

#9340DF is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.2% C 0.229 H 303.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9340DF
RGBrgb(147, 64, 223)
HSLhsl(271, 71%, 56%)
HSVhsv(271, 71%, 87%)
CMYKcmyk(34.1%, 71.3%, 0%, 12.5%)
CIE-LABlab(45.90, 62.60, -66.94)
CIE-LCHlch(45.90, 91.65, 313.08°)
OKLaboklab(56.16% 0.1265 -0.1906)
OKLCHoklch(56.16% 0.229 303.6)
XYZxyz(27.1822, 15.1976, 71.2991)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340DF #8CDF40
analogous
#4440DF #9340DF #DF40DB
triadic
#9340DF #DF9340 #40DF93
tetradic
#9340DF #DF4440 #8CDF40 #40DBDF
square
#9340DF #DF4440 #8CDF40 #40DBDF
split-complementary
#9340DF #DBDF40 #40DF44
monochromatic
#55188D #7420C1 #9340DF #B174E8 #CEA9F1

Accessibility & contrast

On white

5.20
#9340DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9340DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340DF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340DF#FFFFFF#000000##FFFFFF
##9340DF1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#84668C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9340df;
/* rgb */ color: rgb(147, 64, 223);
/* oklch */ color: oklch(56.2% 0.229 303.6);
Tailwind
colors: {
  custom: {
    50: '#b97cea',
    500: '#9340df',
    950: '#000000',
  },
}
SCSS
$custom: #9340df;
$custom-light: #b97cea;
$custom-dark: #000000;
JSON
{
  "hex": "#9340df",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 271.321,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.22872,
    "h": 303.6
  },
  "luminance": 0.15198
}

Semantic roles & 50–950 ramp

primary
#9340DF
secondary
#BCDE9D
accent
#EE3A90
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9340DF

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

Preview Lab → · Contrast checker → · Palette generator →

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