#7342CB#7342CB

#7342CB is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.3% C 0.200 H 294.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7342CB
RGBrgb(115, 66, 203)
HSLhsl(261, 57%, 53%)
HSVhsv(261, 67%, 80%)
CMYKcmyk(43.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(40.98, 50.77, -63.63)
CIE-LCHlch(40.98, 81.40, 308.58°)
OKLaboklab(51.34% 0.0838 -0.1819)
OKLCHoklch(51.34% 0.2 294.7)
XYZxyz(19.7950, 11.8526, 57.7332)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7342CB #9ACB42
analogous
#4255CB #7342CB #B742CB
triadic
#7342CB #CB7342 #42CB73
tetradic
#7342CB #CB4255 #9ACB42 #42CBB7
square
#7342CB #CB4255 #9ACB42 #42CBB7
split-complementary
#7342CB #CBB742 #55CB42
monochromatic
#3D2073 #572DA3 #7342CB #9772D8 #BAA2E5

Accessibility & contrast

On white

6.23
#7342CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7342CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7342CB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7342CB#FFFFFF#000000##FFFFFF
##7342CB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#5B6381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7342cb;
/* rgb */ color: rgb(115, 66, 203);
/* oklch */ color: oklch(51.3% 0.200 294.7);
Tailwind
colors: {
  custom: {
    50: '#a27adc',
    500: '#7342cb',
    950: '#000000',
  },
}
SCSS
$custom: #7342cb;
$custom-light: #a27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7342cb",
  "rgb": {
    "r": 115,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 261.46,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51343,
    "c": 0.20031,
    "h": 294.7
  },
  "luminance": 0.11853
}

Semantic roles & 50–950 ramp

primary
#7342CB
secondary
#BDD297
accent
#E048AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7342CB

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

Preview Lab → · Contrast checker → · Palette generator →

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