#7340CA#7340CA

#7340CA is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.202 H 295.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7340CA
RGBrgb(115, 64, 202)
HSLhsl(262, 57%, 52%)
HSVhsv(262, 68%, 79%)
CMYKcmyk(43.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(40.53, 51.53, -63.78)
CIE-LCHlch(40.53, 82.00, 308.93°)
OKLaboklab(51% 0.0859 -0.1824)
OKLCHoklch(51% 0.202 295.2)
XYZxyz(19.5614, 11.5754, 57.0693)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340CA #97CA40
analogous
#4052CA #7340CA #B840CA
triadic
#7340CA #CA7340 #40CA73
tetradic
#7340CA #CA4052 #97CA40 #40CAB8
square
#7340CA #CA4052 #97CA40 #40CAB8
split-complementary
#7340CA #CAB840 #52CA40
monochromatic
#3D1F70 #572CA0 #7340CA #9670D7 #B9A0E5

Accessibility & contrast

On white

6.33
#7340CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7340CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340CA
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340CA#FFFFFF#000000##FFFFFF
##7340CA1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#5B6280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7340ca;
/* rgb */ color: rgb(115, 64, 202);
/* oklch */ color: oklch(51.0% 0.202 295.2);
Tailwind
colors: {
  custom: {
    50: '#a278db',
    500: '#7340ca',
    950: '#000000',
  },
}
SCSS
$custom: #7340ca;
$custom-light: #a278db;
$custom-dark: #000000;
JSON
{
  "hex": "#7340ca",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 262.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50999,
    "c": 0.2016,
    "h": 295.2
  },
  "luminance": 0.11576
}

Semantic roles & 50–950 ramp

primary
#7340CA
secondary
#BBD195
accent
#E048A8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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