#7342E2#7342E2

#7342E2 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.226 H 290.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7342E2
RGBrgb(115, 66, 226)
HSLhsl(258, 73%, 57%)
HSVhsv(258, 71%, 89%)
CMYKcmyk(49.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.81, 56.92, -73.85)
CIE-LCHlch(42.81, 93.24, 307.62°)
OKLaboklab(53.22% 0.0798 -0.2119)
OKLCHoklch(53.22% 0.226 290.6)
XYZxyz(22.7420, 13.0313, 73.2538)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342E2 #B1E242
analogous
#4261E2 #7342E2 #C342E2
triadic
#7342E2 #E27342 #42E273
tetradic
#7342E2 #E24261 #B1E242 #42E2C3
square
#7342E2 #E24261 #B1E242 #42E2C3
split-complementary
#7342E2 #E2C342 #61E242
monochromatic
#3D1793 #531FC8 #7342E2 #9A77EA #C2ACF2

Accessibility & contrast

On white

5.82
#7342E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7342E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342E2
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342E2#FFFFFF#000000##FFFFFF
##7342E21.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#4D6C8E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7342e2;
/* rgb */ color: rgb(115, 66, 226);
/* oklch */ color: oklch(53.2% 0.226 290.6);
Tailwind
colors: {
  custom: {
    50: '#a57aec',
    500: '#7342e2',
    950: '#000000',
  },
}
SCSS
$custom: #7342e2;
$custom-light: #a57aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7342e2",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 258.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53216,
    "c": 0.22646,
    "h": 290.6
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

primary
#7342E2
secondary
#CCE09F
accent
#F038B8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7342E2

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

Preview Lab → · Contrast checker → · Palette generator →

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