#9340DD#9340DD

#9340DD is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.227 H 304.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9340DD
RGBrgb(147, 64, 221)
HSLhsl(272, 70%, 56%)
HSVhsv(272, 71%, 87%)
CMYKcmyk(33.5%, 71%, 0%, 13.3%)
CIE-LABlab(45.76, 62.14, -66.04)
CIE-LCHlch(45.76, 90.68, 313.26°)
OKLaboklab(56.01% 0.1268 -0.1879)
OKLCHoklch(56.01% 0.227 304)
XYZxyz(26.9142, 15.0904, 69.8874)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340DD #8ADD40
analogous
#4440DD #9340DD #DD40D8
triadic
#9340DD #DD9340 #40DD93
tetradic
#9340DD #DD4440 #8ADD40 #40D8DD
square
#9340DD #DD4440 #8ADD40 #40D8DD
split-complementary
#9340DD #D8DD40 #40DD44
monochromatic
#55198A #7422BE #9340DD #B074E6 #CEA8EF

Accessibility & contrast

On white

5.23
#9340DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9340DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340DD
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340DD#FFFFFF#000000##FFFFFF
##9340DD1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#85668B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9340dd;
/* rgb */ color: rgb(147, 64, 221);
/* oklch */ color: oklch(56.0% 0.227 304.0);
Tailwind
colors: {
  custom: {
    50: '#b87ce9',
    500: '#9340dd',
    950: '#000000',
  },
}
SCSS
$custom: #9340dd;
$custom-light: #b87ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#9340dd",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 271.72,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.22671,
    "h": 304
  },
  "luminance": 0.1509
}

Semantic roles & 50–950 ramp

primary
#9340DD
secondary
#BBDD9C
accent
#ED3B8F
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9340DD

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

Preview Lab → · Contrast checker → · Palette generator →

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