#7542BC#7542BC

#7542BC is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.183 H 298.9°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7542BC
RGBrgb(117, 66, 188)
HSLhsl(265, 48%, 50%)
HSVhsv(265, 65%, 74%)
CMYKcmyk(37.8%, 64.9%, 0%, 26.3%)
CIE-LABlab(40.10, 47.24, -56.32)
CIE-LCHlch(40.10, 73.51, 309.99°)
OKLaboklab(50.41% 0.0884 -0.1604)
OKLCHoklch(50.41% 0.183 298.9)
XYZxyz(18.3592, 11.3090, 48.7828)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542BC #89BC42
analogous
#424CBC #7542BC #B242BC
triadic
#7542BC #BC7542 #42BC75
tetradic
#7542BC #BC424C #89BC42 #42BCB2
square
#7542BC #BC424C #89BC42 #42BCB2
split-complementary
#7542BC #BCB242 #4CBC42
monochromatic
#3D2261 #59328F #7542BC #966FCC #B79CDC

Accessibility & contrast

On white

6.44
#7542BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7542BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542BC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542BC#FFFFFF#000000##FFFFFF
##7542BC1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#655E79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7542bc;
/* rgb */ color: rgb(117, 66, 188);
/* oklch */ color: oklch(50.4% 0.183 298.9);
Tailwind
colors: {
  custom: {
    50: '#a279d1',
    500: '#7542bc',
    950: '#000000',
  },
}
SCSS
$custom: #7542bc;
$custom-light: #a279d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7542bc",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 265.082,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50409,
    "c": 0.18312,
    "h": 298.9
  },
  "luminance": 0.11309
}

Semantic roles & 50–950 ramp

primary
#7542BC
secondary
#B1C991
accent
#D8509F
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7542BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7542BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva