#7542AE#7542AE

#7542AE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.4% C 0.167 H 302.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7542AE
RGBrgb(117, 66, 174)
HSLhsl(268, 45%, 47%)
HSVhsv(268, 62%, 68%)
CMYKcmyk(32.8%, 62.1%, 0%, 31.8%)
CIE-LABlab(39.13, 43.66, -49.63)
CIE-LCHlch(39.13, 66.10, 311.34°)
OKLaboklab(49.4% 0.0894 -0.1407)
OKLCHoklch(49.4% 0.167 302.4)
XYZxyz(16.9225, 10.7343, 41.2166)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542AE #7BAE42
analogous
#4245AE #7542AE #AB42AE
triadic
#7542AE #AE7542 #42AE75
tetradic
#7542AE #AE4245 #7BAE42 #42AEAB
square
#7542AE #AE4245 #7BAE42 #42AEAB
split-complementary
#7542AE #AEAB42 #45AE42
monochromatic
#392055 #573182 #7542AE #9468C6 #B394D6

Accessibility & contrast

On white

6.67
#7542AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7542AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542AE
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542AE#FFFFFF#000000##FFFFFF
##7542AE1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#225CAC
Tritanopia (blue-blind)
#6A5972
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7542ae;
/* rgb */ color: rgb(117, 66, 174);
/* oklch */ color: oklch(49.4% 0.167 302.4);
Tailwind
colors: {
  custom: {
    50: '#a179c7',
    500: '#7542ae',
    950: '#000000',
  },
}
SCSS
$custom: #7542ae;
$custom-light: #a179c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7542ae",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 268.333,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49402,
    "c": 0.1667,
    "h": 302.4
  },
  "luminance": 0.10734
}

Semantic roles & 50–950 ramp

primary
#7542AE
secondary
#A7C28A
accent
#D55398
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7542AE

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

Preview Lab → · Contrast checker → · Palette generator →

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