#7342D1#7342D1

#7342D1 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.207 H 293.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7342D1
RGBrgb(115, 66, 209)
HSLhsl(261, 61%, 54%)
HSVhsv(261, 68%, 82%)
CMYKcmyk(45%, 68.4%, 0%, 18%)
CIE-LABlab(41.44, 52.37, -66.35)
CIE-LCHlch(41.44, 84.52, 308.28°)
OKLaboklab(51.82% 0.0829 -0.1899)
OKLCHoklch(51.82% 0.207 293.6)
XYZxyz(20.5239, 12.1441, 61.5719)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342D1 #A0D142
analogous
#4259D1 #7342D1 #BA42D1
triadic
#7342D1 #D17342 #42D173
tetradic
#7342D1 #D14259 #A0D142 #42D1BA
square
#7342D1 #D14259 #A0D142 #42D1BA
split-complementary
#7342D1 #D1BA42 #59D142
monochromatic
#3E1E7B #562AAC #7342D1 #9773DD #BCA4E9

Accessibility & contrast

On white

6.12
#7342D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7342D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342D1
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342D1#FFFFFF#000000##FFFFFF
##7342D11.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#005FCE
Tritanopia (blue-blind)
#586584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7342d1;
/* rgb */ color: rgb(115, 66, 209);
/* oklch */ color: oklch(51.8% 0.207 293.6);
Tailwind
colors: {
  custom: {
    50: '#a37ae0',
    500: '#7342d1',
    950: '#000000',
  },
}
SCSS
$custom: #7342d1;
$custom-light: #a37ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7342d1",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 260.559,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5182,
    "c": 0.2072,
    "h": 293.6
  },
  "luminance": 0.12145
}

Semantic roles & 50–950 ramp

primary
#7342D1
secondary
#C1D699
accent
#E444AD
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7342D1

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

Preview Lab → · Contrast checker → · Palette generator →

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