#7342C7#7342C7

#7342C7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.196 H 295.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7342C7
RGBrgb(115, 66, 199)
HSLhsl(262, 54%, 52%)
HSVhsv(262, 67%, 78%)
CMYKcmyk(42.2%, 66.8%, 0%, 22%)
CIE-LABlab(40.68, 49.71, -61.81)
CIE-LCHlch(40.68, 79.32, 308.81°)
OKLaboklab(51.03% 0.0844 -0.1766)
OKLCHoklch(51.03% 0.196 295.5)
XYZxyz(19.3245, 11.6644, 55.2551)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342C7 #96C742
analogous
#4254C7 #7342C7 #B642C7
triadic
#7342C7 #C77342 #42C773
tetradic
#7342C7 #C74254 #96C742 #42C7B6
square
#7342C7 #C74254 #96C742 #42C7B6
split-complementary
#7342C7 #C7B642 #54C742
monochromatic
#3D216E #572F9D #7342C7 #9671D5 #B9A0E3

Accessibility & contrast

On white

6.30
#7342C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7342C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342C7
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342C7#FFFFFF#000000##FFFFFF
##7342C71.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)
#0061CB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#5D627F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7342c7;
/* rgb */ color: rgb(115, 66, 199);
/* oklch */ color: oklch(51.0% 0.196 295.5);
Tailwind
colors: {
  custom: {
    50: '#a27ad9',
    500: '#7342c7',
    950: '#000000',
  },
}
SCSS
$custom: #7342c7;
$custom-light: #a27ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7342c7",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 262.105,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51031,
    "c": 0.19568,
    "h": 295.5
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#7342C7
secondary
#BAD095
accent
#DE4AA7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7342C7

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

Preview Lab → · Contrast checker → · Palette generator →

#7342C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva