#9340CD#9340CD

#9340CD is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.211 H 307.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9340CD
RGBrgb(147, 64, 205)
HSLhsl(275, 59%, 53%)
HSVhsv(275, 69%, 80%)
CMYKcmyk(28.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(44.63, 58.53, -58.70)
CIE-LCHlch(44.63, 82.89, 314.92°)
OKLaboklab(54.85% 0.1291 -0.1663)
OKLCHoklch(54.85% 0.211 307.8)
XYZxyz(24.8832, 14.2780, 59.1908)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340CD #7ACD40
analogous
#4C40CD #9340CD #CD40C0
triadic
#9340CD #CD9340 #40CD93
tetradic
#9340CD #CD4C40 #7ACD40 #40C0CD
square
#9340CD #CD4C40 #7ACD40 #40C0CD
split-complementary
#9340CD #C0CD40 #40CD4C
monochromatic
#511E74 #732BA5 #9340CD #AE71DA #CAA1E6

Accessibility & contrast

On white

5.45
#9340CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9340CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340CD
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340CD#FFFFFF#000000##FFFFFF
##9340CD1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1D6ACA
Tritanopia (blue-blind)
#8A5F82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9340cd;
/* rgb */ color: rgb(147, 64, 205);
/* oklch */ color: oklch(54.8% 0.211 307.8);
Tailwind
colors: {
  custom: {
    50: '#b77bdd',
    500: '#9340cd',
    950: '#000000',
  },
}
SCSS
$custom: #9340cd;
$custom-light: #b77bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9340cd",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 275.319,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54847,
    "c": 0.21058,
    "h": 307.8
  },
  "luminance": 0.14278
}

Semantic roles & 50–950 ramp

primary
#9340CD
secondary
#AFD396
accent
#E24686
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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