#7342AB#7342AB

#7342AB is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.0% C 0.163 H 302.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7342AB
RGBrgb(115, 66, 171)
HSLhsl(268, 44%, 46%)
HSVhsv(268, 61%, 67%)
CMYKcmyk(32.7%, 61.4%, 0%, 32.9%)
CIE-LABlab(38.69, 42.43, -48.56)
CIE-LCHlch(38.69, 64.48, 311.14°)
OKLaboklab(48.97% 0.0868 -0.1376)
OKLCHoklch(48.97% 0.163 302.2)
XYZxyz(16.3674, 10.4815, 39.6810)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342AB #7AAB42
analogous
#4246AB #7342AB #A842AB
triadic
#7342AB #AB7342 #42AB73
tetradic
#7342AB #AB4246 #7AAB42 #42ABA8
square
#7342AB #AB4246 #7AAB42 #42ABA8
split-complementary
#7342AB #ABA842 #46AB42
monochromatic
#382053 #55317F #7342AB #9266C4 #B192D5

Accessibility & contrast

On white

6.78
#7342AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7342AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342AB
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342AB#FFFFFF#000000##FFFFFF
##7342AB1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#235BA9
Tritanopia (blue-blind)
#685870
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7342ab;
/* rgb */ color: rgb(115, 66, 171);
/* oklch */ color: oklch(49.0% 0.163 302.2);
Tailwind
colors: {
  custom: {
    50: '#9f79c5',
    500: '#7342ab',
    950: '#000000',
  },
}
SCSS
$custom: #7342ab;
$custom-light: #9f79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7342ab",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 268,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.16272,
    "h": 302.2
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#7342AB
secondary
#A6C088
accent
#D45498
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7342AB

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

Preview Lab → · Contrast checker → · Palette generator →

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