#7342D4#7342D4

#7342D4 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.211 H 293.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7342D4
RGBrgb(115, 66, 212)
HSLhsl(260, 63%, 55%)
HSVhsv(260, 69%, 83%)
CMYKcmyk(45.8%, 68.9%, 0%, 16.9%)
CIE-LABlab(41.68, 53.17, -67.69)
CIE-LCHlch(41.68, 86.07, 308.15°)
OKLaboklab(52.06% 0.0824 -0.1939)
OKLCHoklch(52.06% 0.211 293)
XYZxyz(20.8988, 12.2941, 63.5465)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342D4 #A3D442
analogous
#425AD4 #7342D4 #BC42D4
triadic
#7342D4 #D47342 #42D473
tetradic
#7342D4 #D4425A #A3D442 #42D4BC
square
#7342D4 #D4425A #A3D442 #42D4BC
split-complementary
#7342D4 #D4BC42 #5AD442
monochromatic
#3E1D7F #5628B1 #7342D4 #9874DF #BDA6EB

Accessibility & contrast

On white

6.07
#7342D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7342D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342D4
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342D4#FFFFFF#000000##FFFFFF
##7342D41.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0060D1
Tritanopia (blue-blind)
#566786
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7342d4;
/* rgb */ color: rgb(115, 66, 212);
/* oklch */ color: oklch(52.1% 0.211 293.0);
Tailwind
colors: {
  custom: {
    50: '#a37ae2',
    500: '#7342d4',
    950: '#000000',
  },
}
SCSS
$custom: #7342d4;
$custom-light: #a37ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7342d4",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 260.137,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52061,
    "c": 0.21063,
    "h": 293
  },
  "luminance": 0.12295
}

Semantic roles & 50–950 ramp

primary
#7342D4
secondary
#C3D89A
accent
#E642AF
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7342D4

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

Preview Lab → · Contrast checker → · Palette generator →

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