#7342AC#7342AC

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

Color values

HEX#7342AC
RGBrgb(115, 66, 172)
HSLhsl(268, 45%, 47%)
HSVhsv(268, 62%, 67%)
CMYKcmyk(33.1%, 61.6%, 0%, 32.5%)
CIE-LABlab(38.76, 42.68, -49.05)
CIE-LCHlch(38.76, 65.02, 311.03°)
OKLaboklab(49.04% 0.0868 -0.139)
OKLCHoklch(49.04% 0.164 302)
XYZxyz(16.4631, 10.5198, 40.1849)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342AC #7BAC42
analogous
#4246AC #7342AC #A842AC
triadic
#7342AC #AC7342 #42AC73
tetradic
#7342AC #AC4246 #7BAC42 #42ACA8
square
#7342AC #AC4246 #7BAC42 #42ACA8
split-complementary
#7342AC #ACA842 #46AC42
monochromatic
#382054 #553180 #7342AC #9267C5 #B293D6

Accessibility & contrast

On white

6.77
#7342AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7342AC
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342AC#FFFFFF#000000##FFFFFF
##7342AC1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#225BAA
Tritanopia (blue-blind)
#685871
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7342ac;
/* rgb */ color: rgb(115, 66, 172);
/* oklch */ color: oklch(49.0% 0.164 302.0);
Tailwind
colors: {
  custom: {
    50: '#9f79c5',
    500: '#7342ac',
    950: '#000000',
  },
}
SCSS
$custom: #7342ac;
$custom-light: #9f79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7342ac",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 267.736,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49038,
    "c": 0.16391,
    "h": 302
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#7342AC
secondary
#A7C189
accent
#D45499
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7342AC

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

Preview Lab → · Contrast checker → · Palette generator →

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