#7340CC#7340CC

#7340CC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.204 H 294.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7340CC
RGBrgb(115, 64, 204)
HSLhsl(262, 58%, 53%)
HSVhsv(262, 69%, 80%)
CMYKcmyk(43.6%, 68.6%, 0%, 20%)
CIE-LABlab(40.69, 52.05, -64.69)
CIE-LCHlch(40.69, 83.03, 308.82°)
OKLaboklab(51.16% 0.0856 -0.185)
OKLCHoklch(51.16% 0.204 294.8)
XYZxyz(19.7998, 11.6708, 58.3245)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340CC #99CC40
analogous
#4053CC #7340CC #B940CC
triadic
#7340CC #CC7340 #40CC73
tetradic
#7340CC #CC4053 #99CC40 #40CCB9
square
#7340CC #CC4053 #99CC40 #40CCB9
split-complementary
#7340CC #CCB940 #53CC40
monochromatic
#3D1F73 #572CA3 #7340CC #9670D9 #BAA1E6

Accessibility & contrast

On white

6.30
#7340CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7340CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340CC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340CC#FFFFFF#000000##FFFFFF
##7340CC1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#5A6281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7340cc;
/* rgb */ color: rgb(115, 64, 204);
/* oklch */ color: oklch(51.2% 0.204 294.8);
Tailwind
colors: {
  custom: {
    50: '#a279dd',
    500: '#7340cc',
    950: '#000000',
  },
}
SCSS
$custom: #7340cc;
$custom-light: #a279dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7340cc",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 261.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.20388,
    "h": 294.8
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#7340CC
secondary
#BCD295
accent
#E147A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340CC

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

Preview Lab → · Contrast checker → · Palette generator →

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