#7542C7#7542C7

#7542C7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.196 H 296.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7542C7
RGBrgb(117, 66, 199)
HSLhsl(263, 54%, 52%)
HSVhsv(263, 67%, 78%)
CMYKcmyk(41.2%, 66.8%, 0%, 22%)
CIE-LABlab(40.90, 50.10, -61.44)
CIE-LCHlch(40.90, 79.27, 309.19°)
OKLaboklab(51.24% 0.0871 -0.1754)
OKLCHoklch(51.24% 0.196 296.4)
XYZxyz(19.5904, 11.8015, 55.2675)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542C7 #94C742
analogous
#4251C7 #7542C7 #B842C7
triadic
#7542C7 #C77542 #42C775
tetradic
#7542C7 #C74251 #94C742 #42C7B8
square
#7542C7 #C74251 #94C742 #42C7B8
split-complementary
#7542C7 #C7B842 #51C742
monochromatic
#3E216E #592F9D #7542C7 #9771D5 #BAA0E3

Accessibility & contrast

On white

6.25
#7542C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7542C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542C7
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542C7#FFFFFF#000000##FFFFFF
##7542C71.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#60627F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7542c7;
/* rgb */ color: rgb(117, 66, 199);
/* oklch */ color: oklch(51.2% 0.196 296.4);
Tailwind
colors: {
  custom: {
    50: '#a37ad9',
    500: '#7542c7',
    950: '#000000',
  },
}
SCSS
$custom: #7542c7;
$custom-light: #a37ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7542c7",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 263.008,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5124,
    "c": 0.19585,
    "h": 296.4
  },
  "luminance": 0.11802
}

Semantic roles & 50–950 ramp

primary
#7542C7
secondary
#B9D095
accent
#DE4AA5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7542C7

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

Preview Lab → · Contrast checker → · Palette generator →

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