#7542C8#7542C8

#7542C8 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.197 H 296.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7542C8
RGBrgb(117, 66, 200)
HSLhsl(263, 55%, 52%)
HSVhsv(263, 67%, 78%)
CMYKcmyk(41.5%, 67%, 0%, 21.6%)
CIE-LABlab(40.97, 50.36, -61.90)
CIE-LCHlch(40.97, 79.79, 309.13°)
OKLaboklab(51.32% 0.087 -0.1768)
OKLCHoklch(51.32% 0.197 296.2)
XYZxyz(19.7069, 11.8481, 55.8810)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542C8 #95C842
analogous
#4252C8 #7542C8 #B842C8
triadic
#7542C8 #C87542 #42C875
tetradic
#7542C8 #C84252 #95C842 #42C8B8
square
#7542C8 #C84252 #95C842 #42C8B8
split-complementary
#7542C8 #C8B842 #52C842
monochromatic
#3E206F #592E9F #7542C8 #9871D6 #BAA1E4

Accessibility & contrast

On white

6.23
#7542C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7542C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542C8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542C8#FFFFFF#000000##FFFFFF
##7542C81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#60627F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7542c8;
/* rgb */ color: rgb(117, 66, 200);
/* oklch */ color: oklch(51.3% 0.197 296.2);
Tailwind
colors: {
  custom: {
    50: '#a37ada',
    500: '#7542c8',
    950: '#000000',
  },
}
SCSS
$custom: #7542c8;
$custom-light: #a37ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7542c8",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 262.836,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51317,
    "c": 0.19701,
    "h": 296.2
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#7542C8
secondary
#BAD096
accent
#DE4AA6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7542C8

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

Preview Lab → · Contrast checker → · Palette generator →

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