#7342C4#7342C4

#7342C4 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.192 H 296.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7342C4
RGBrgb(115, 66, 196)
HSLhsl(263, 52%, 51%)
HSVhsv(263, 66%, 77%)
CMYKcmyk(41.3%, 66.3%, 0%, 23.1%)
CIE-LABlab(40.45, 48.92, -60.43)
CIE-LCHlch(40.45, 77.74, 308.99°)
OKLaboklab(50.8% 0.0847 -0.1725)
OKLCHoklch(50.8% 0.192 296.2)
XYZxyz(18.9796, 11.5264, 53.4387)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342C4 #93C442
analogous
#4252C4 #7342C4 #B442C4
triadic
#7342C4 #C47342 #42C473
tetradic
#7342C4 #C44252 #93C442 #42C4B4
square
#7342C4 #C44252 #93C442 #42C4B4
split-complementary
#7342C4 #C4B442 #52C442
monochromatic
#3D216A #573099 #7342C4 #9671D3 #B89FE1

Accessibility & contrast

On white

6.35
#7342C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7342C4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342C4#FFFFFF#000000##FFFFFF
##7342C41.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#5E617D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7342c4;
/* rgb */ color: rgb(115, 66, 196);
/* oklch */ color: oklch(50.8% 0.192 296.2);
Tailwind
colors: {
  custom: {
    50: '#a179d7',
    500: '#7342c4',
    950: '#000000',
  },
}
SCSS
$custom: #7342c4;
$custom-light: #a179d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7342c4",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 262.615,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50799,
    "c": 0.1922,
    "h": 296.2
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#7342C4
secondary
#B8CE94
accent
#DC4CA6
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7342C4

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

Preview Lab → · Contrast checker → · Palette generator →

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