#7342CA#7342CA

#7342CA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.199 H 294.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7342CA
RGBrgb(115, 66, 202)
HSLhsl(262, 56%, 53%)
HSVhsv(262, 67%, 79%)
CMYKcmyk(43.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.90, 50.50, -63.18)
CIE-LCHlch(40.90, 80.88, 308.64°)
OKLaboklab(51.27% 0.0839 -0.1806)
OKLCHoklch(51.27% 0.199 294.9)
XYZxyz(19.6763, 11.8050, 57.1076)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342CA #99CA42
analogous
#4255CA #7342CA #B742CA
triadic
#7342CA #CA7342 #42CA73
tetradic
#7342CA #CA4255 #99CA42 #42CAB7
square
#7342CA #CA4255 #99CA42 #42CAB7
split-complementary
#7342CA #CAB742 #55CA42
monochromatic
#3D2072 #572DA2 #7342CA #9672D7 #BAA2E5

Accessibility & contrast

On white

6.25
#7342CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7342CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342CA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342CA#FFFFFF#000000##FFFFFF
##7342CA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#5B6381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7342ca;
/* rgb */ color: rgb(115, 66, 202);
/* oklch */ color: oklch(51.3% 0.199 294.9);
Tailwind
colors: {
  custom: {
    50: '#a27adb',
    500: '#7342ca',
    950: '#000000',
  },
}
SCSS
$custom: #7342ca;
$custom-light: #a27adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7342ca",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 261.618,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51265,
    "c": 0.19915,
    "h": 294.9
  },
  "luminance": 0.11806
}

Semantic roles & 50–950 ramp

primary
#7342CA
secondary
#BCD196
accent
#DF48A9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7342CA

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

Preview Lab → · Contrast checker → · Palette generator →

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