#7542CC#7542CC

#7542CC is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.202 H 295.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7542CC
RGBrgb(117, 66, 204)
HSLhsl(262, 58%, 53%)
HSVhsv(262, 68%, 80%)
CMYKcmyk(42.6%, 67.6%, 0%, 20%)
CIE-LABlab(41.28, 51.41, -63.72)
CIE-LCHlch(41.28, 81.88, 308.89°)
OKLaboklab(51.63% 0.0864 -0.1821)
OKLCHoklch(51.63% 0.202 295.4)
XYZxyz(20.1805, 12.0375, 58.3752)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542CC #99CC42
analogous
#4254CC #7542CC #BA42CC
triadic
#7542CC #CC7542 #42CC75
tetradic
#7542CC #CC4254 #99CC42 #42CCBA
square
#7542CC #CC4254 #99CC42 #42CCBA
split-complementary
#7542CC #CCBA42 #54CC42
monochromatic
#3F1F74 #592CA4 #7542CC #9872D9 #BBA2E6

Accessibility & contrast

On white

6.16
#7542CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7542CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542CC
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542CC#FFFFFF#000000##FFFFFF
##7542CC1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#5E6382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7542cc;
/* rgb */ color: rgb(117, 66, 204);
/* oklch */ color: oklch(51.6% 0.202 295.4);
Tailwind
colors: {
  custom: {
    50: '#a37adc',
    500: '#7542cc',
    950: '#000000',
  },
}
SCSS
$custom: #7542cc;
$custom-light: #a37adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7542cc",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 262.174,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51628,
    "c": 0.20159,
    "h": 295.4
  },
  "luminance": 0.12038
}

Semantic roles & 50–950 ramp

primary
#7542CC
secondary
#BDD397
accent
#E147A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7542CC

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

Preview Lab → · Contrast checker → · Palette generator →

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