#7342E1#7342E1

#7342E1 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.225 H 290.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7342E1
RGBrgb(115, 66, 225)
HSLhsl(258, 73%, 57%)
HSVhsv(258, 71%, 88%)
CMYKcmyk(48.9%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.73, 56.65, -73.42)
CIE-LCHlch(42.73, 92.73, 307.65°)
OKLaboklab(53.13% 0.08 -0.2107)
OKLCHoklch(53.13% 0.225 290.8)
XYZxyz(22.6052, 12.9766, 72.5332)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342E1 #B0E142
analogous
#4260E1 #7342E1 #C342E1
triadic
#7342E1 #E17342 #42E173
tetradic
#7342E1 #E14260 #B0E142 #42E1C3
square
#7342E1 #E14260 #B0E142 #42E1C3
split-complementary
#7342E1 #E1C342 #60E142
monochromatic
#3D1792 #531FC6 #7342E1 #9A77E9 #C1ACF2

Accessibility & contrast

On white

5.84
#7342E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7342E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342E1
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342E1#FFFFFF#000000##FFFFFF
##7342E11.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#4E6B8D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7342e1;
/* rgb */ color: rgb(115, 66, 225);
/* oklch */ color: oklch(53.1% 0.225 290.8);
Tailwind
colors: {
  custom: {
    50: '#a57aec',
    500: '#7342e1',
    950: '#000000',
  },
}
SCSS
$custom: #7342e1;
$custom-light: #a57aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7342e1",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 258.491,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.53132,
    "c": 0.22533,
    "h": 290.8
  },
  "luminance": 0.12978
}

Semantic roles & 50–950 ramp

primary
#7342E1
secondary
#CCE09F
accent
#EF38B7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7342E1

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

Preview Lab → · Contrast checker → · Palette generator →

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