#7342C5#7342C5

#7342C5 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.193 H 296.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7342C5
RGBrgb(115, 66, 197)
HSLhsl(262, 53%, 52%)
HSVhsv(262, 66%, 77%)
CMYKcmyk(41.6%, 66.5%, 0%, 22.7%)
CIE-LABlab(40.53, 49.18, -60.89)
CIE-LCHlch(40.53, 78.27, 308.93°)
OKLaboklab(50.88% 0.0846 -0.1739)
OKLCHoklch(50.88% 0.193 296)
XYZxyz(19.0938, 11.5721, 54.0401)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342C5 #94C542
analogous
#4253C5 #7342C5 #B542C5
triadic
#7342C5 #C57342 #42C573
tetradic
#7342C5 #C54253 #94C542 #42C5B5
square
#7342C5 #C54253 #94C542 #42C5B5
split-complementary
#7342C5 #C5B542 #53C542
monochromatic
#3D216C #572F9A #7342C5 #9671D3 #B8A0E2

Accessibility & contrast

On white

6.34
#7342C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7342C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342C5
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342C5#FFFFFF#000000##FFFFFF
##7342C51.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#5E617E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7342c5;
/* rgb */ color: rgb(115, 66, 197);
/* oklch */ color: oklch(50.9% 0.193 296.0);
Tailwind
colors: {
  custom: {
    50: '#a179d7',
    500: '#7342c5',
    950: '#000000',
  },
}
SCSS
$custom: #7342c5;
$custom-light: #a179d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7342c5",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 262.443,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50876,
    "c": 0.19335,
    "h": 296
  },
  "luminance": 0.11572
}

Semantic roles & 50–950 ramp

primary
#7342C5
secondary
#B9CE95
accent
#DC4BA6
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7342C5

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

Preview Lab → · Contrast checker → · Palette generator →

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