#9340CA#9340CA

#9340CA is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.208 H 308.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9340CA
RGBrgb(147, 64, 202)
HSLhsl(276, 57%, 52%)
HSVhsv(276, 68%, 79%)
CMYKcmyk(27.2%, 68.3%, 0%, 20.8%)
CIE-LABlab(44.43, 57.86, -57.29)
CIE-LCHlch(44.43, 81.43, 315.28°)
OKLaboklab(54.64% 0.1295 -0.1622)
OKLCHoklch(54.64% 0.208 308.6)
XYZxyz(24.5245, 14.1345, 57.3019)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9340CA #77CA40
analogous
#4E40CA #9340CA #CA40BC
triadic
#9340CA #CA9340 #40CA93
tetradic
#9340CA #CA4E40 #77CA40 #40BCCA
square
#9340CA #CA4E40 #77CA40 #40BCCA
split-complementary
#9340CA #BCCA40 #40CA4E
monochromatic
#501F70 #722CA0 #9340CA #AE70D7 #C9A0E5

Accessibility & contrast

On white

5.49
#9340CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9340CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9340CA
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9340CA#FFFFFF#000000##FFFFFF
##9340CA1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#236AC7
Tritanopia (blue-blind)
#8B5E80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9340ca;
/* rgb */ color: rgb(147, 64, 202);
/* oklch */ color: oklch(54.6% 0.208 308.6);
Tailwind
colors: {
  custom: {
    50: '#b77bdb',
    500: '#9340ca',
    950: '#000000',
  },
}
SCSS
$custom: #9340ca;
$custom-light: #b77bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9340ca",
  "rgb": {
    "r": 147,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 276.087,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54637,
    "c": 0.20756,
    "h": 308.6
  },
  "luminance": 0.14134
}

Semantic roles & 50–950 ramp

primary
#9340CA
secondary
#ADD195
accent
#E04884
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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