#7342CF#7342CF

#7342CF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.205 H 294.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7342CF
RGBrgb(115, 66, 207)
HSLhsl(261, 59%, 54%)
HSVhsv(261, 68%, 81%)
CMYKcmyk(44.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(41.29, 51.83, -65.45)
CIE-LCHlch(41.29, 83.49, 308.38°)
OKLaboklab(51.66% 0.0832 -0.1873)
OKLCHoklch(51.66% 0.205 294)
XYZxyz(20.2779, 12.0457, 60.2760)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342CF #9ECF42
analogous
#4257CF #7342CF #B942CF
triadic
#7342CF #CF7342 #42CF73
tetradic
#7342CF #CF4257 #9ECF42 #42CFB9
square
#7342CF #CF4257 #9ECF42 #42CFB9
split-complementary
#7342CF #CFB942 #57CF42
monochromatic
#3E1F78 #572BA9 #7342CF #9773DB #BBA4E8

Accessibility & contrast

On white

6.16
#7342CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7342CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342CF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342CF#FFFFFF#000000##FFFFFF
##7342CF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#596583
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7342cf;
/* rgb */ color: rgb(115, 66, 207);
/* oklch */ color: oklch(51.7% 0.205 294.0);
Tailwind
colors: {
  custom: {
    50: '#a37adf',
    500: '#7342cf',
    950: '#000000',
  },
}
SCSS
$custom: #7342cf;
$custom-light: #a37adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7342cf",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 260.851,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.2049,
    "h": 294
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#7342CF
secondary
#C0D598
accent
#E345AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7342CF

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

Preview Lab → · Contrast checker → · Palette generator →

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