#7542C0#7542C0

#7542C0 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.188 H 297.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7542C0
RGBrgb(117, 66, 192)
HSLhsl(264, 50%, 51%)
HSVhsv(264, 66%, 75%)
CMYKcmyk(39.1%, 65.6%, 0%, 24.7%)
CIE-LABlab(40.38, 48.27, -58.20)
CIE-LCHlch(40.38, 75.61, 309.68°)
OKLaboklab(50.71% 0.088 -0.1659)
OKLCHoklch(50.71% 0.188 297.9)
XYZxyz(18.7963, 11.4838, 51.0853)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542C0 #8DC042
analogous
#424EC0 #7542C0 #B442C0
triadic
#7542C0 #C07542 #42C075
tetradic
#7542C0 #C0424E #8DC042 #42C0B4
square
#7542C0 #C0424E #8DC042 #42C0B4
split-complementary
#7542C0 #C0B442 #4EC042
monochromatic
#3D2266 #593194 #7542C0 #9770CF #B89EDF

Accessibility & contrast

On white

6.37
#7542C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7542C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542C0
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542C0#FFFFFF#000000##FFFFFF
##7542C01.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#635F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7542c0;
/* rgb */ color: rgb(117, 66, 192);
/* oklch */ color: oklch(50.7% 0.188 297.9);
Tailwind
colors: {
  custom: {
    50: '#a279d4',
    500: '#7542c0',
    950: '#000000',
  },
}
SCSS
$custom: #7542c0;
$custom-light: #a279d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7542c0",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 264.286,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50707,
    "c": 0.18777,
    "h": 297.9
  },
  "luminance": 0.11484
}

Semantic roles & 50–950 ramp

primary
#7542C0
secondary
#B4CB93
accent
#DA4EA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7542C0

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

Preview Lab → · Contrast checker → · Palette generator →

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