#7542C4#7542C4

#7542C4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.192 H 297.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7542C4
RGBrgb(117, 66, 196)
HSLhsl(264, 52%, 51%)
HSVhsv(264, 66%, 77%)
CMYKcmyk(40.3%, 66.3%, 0%, 23.1%)
CIE-LABlab(40.68, 49.31, -60.05)
CIE-LCHlch(40.68, 77.71, 309.39°)
OKLaboklab(51.01% 0.0875 -0.1713)
OKLCHoklch(51.01% 0.192 297.1)
XYZxyz(19.2456, 11.6635, 53.4512)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542C4 #91C442
analogous
#4250C4 #7542C4 #B642C4
triadic
#7542C4 #C47542 #42C475
tetradic
#7542C4 #C44250 #91C442 #42C4B6
square
#7542C4 #C44250 #91C442 #42C4B6
split-complementary
#7542C4 #C4B642 #50C442
monochromatic
#3E216A #593099 #7542C4 #9771D3 #B99FE1

Accessibility & contrast

On white

6.30
#7542C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7542C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542C4
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542C4#FFFFFF#000000##FFFFFF
##7542C41.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#61607D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7542c4;
/* rgb */ color: rgb(117, 66, 196);
/* oklch */ color: oklch(51.0% 0.192 297.1);
Tailwind
colors: {
  custom: {
    50: '#a37ad7',
    500: '#7542c4',
    950: '#000000',
  },
}
SCSS
$custom: #7542c4;
$custom-light: #a37ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7542c4",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 263.538,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5101,
    "c": 0.19239,
    "h": 297.1
  },
  "luminance": 0.11664
}

Semantic roles & 50–950 ramp

primary
#7542C4
secondary
#B7CE94
accent
#DC4CA3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7542C4

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

Preview Lab → · Contrast checker → · Palette generator →

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