#7342B2#7342B2

#7342B2 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.5% C 0.171 H 300.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7342B2
RGBrgb(115, 66, 178)
HSLhsl(266, 46%, 48%)
HSVhsv(266, 63%, 70%)
CMYKcmyk(35.4%, 62.9%, 0%, 30.2%)
CIE-LABlab(39.17, 44.22, -51.95)
CIE-LCHlch(39.17, 68.22, 310.40°)
OKLaboklab(49.46% 0.0865 -0.1476)
OKLCHoklch(49.46% 0.171 300.4)
XYZxyz(17.0524, 10.7555, 43.2885)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342B2 #81B242
analogous
#4249B2 #7342B2 #AB42B2
triadic
#7342B2 #B27342 #42B273
tetradic
#7342B2 #B24249 #81B242 #42B2AB
square
#7342B2 #B24249 #81B242 #42B2AB
split-complementary
#7342B2 #B2AB42 #49B242
monochromatic
#392159 #563185 #7342B2 #936AC8 #B396D8

Accessibility & contrast

On white

6.66
#7342B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7342B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342B2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342B2#FFFFFF#000000##FFFFFF
##7342B21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#175BB0
Tritanopia (blue-blind)
#655A74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7342b2;
/* rgb */ color: rgb(115, 66, 178);
/* oklch */ color: oklch(49.5% 0.171 300.4);
Tailwind
colors: {
  custom: {
    50: '#a079ca',
    500: '#7342b2',
    950: '#000000',
  },
}
SCSS
$custom: #7342b2;
$custom-light: #a079ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7342b2",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 266.25,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49462,
    "c": 0.17105,
    "h": 300.4
  },
  "luminance": 0.10756
}

Semantic roles & 50–950 ramp

primary
#7342B2
secondary
#ABC48C
accent
#D6529C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7342B2

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

Preview Lab → · Contrast checker → · Palette generator →

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