#7542CA#7542CA

#7542CA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.199 H 295.8°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7542CA
RGBrgb(117, 66, 202)
HSLhsl(263, 56%, 53%)
HSVhsv(263, 67%, 79%)
CMYKcmyk(42.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.12, 50.88, -62.81)
CIE-LCHlch(41.12, 80.84, 309.01°)
OKLaboklab(51.47% 0.0867 -0.1794)
OKLCHoklch(51.47% 0.199 295.8)
XYZxyz(19.9422, 11.9422, 57.1200)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542CA #97CA42
analogous
#4253CA #7542CA #B942CA
triadic
#7542CA #CA7542 #42CA75
tetradic
#7542CA #CA4253 #97CA42 #42CAB9
square
#7542CA #CA4253 #97CA42 #42CAB9
split-complementary
#7542CA #CAB942 #53CA42
monochromatic
#3F2072 #592DA2 #7542CA #9872D7 #BBA2E5

Accessibility & contrast

On white

6.20
#7542CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7542CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542CA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542CA#FFFFFF#000000##FFFFFF
##7542CA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#5F6381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7542ca;
/* rgb */ color: rgb(117, 66, 202);
/* oklch */ color: oklch(51.5% 0.199 295.8);
Tailwind
colors: {
  custom: {
    50: '#a37adb',
    500: '#7542ca',
    950: '#000000',
  },
}
SCSS
$custom: #7542ca;
$custom-light: #a37adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7542ca",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 262.5,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51472,
    "c": 0.1993,
    "h": 295.8
  },
  "luminance": 0.11943
}

Semantic roles & 50–950 ramp

primary
#7542CA
secondary
#BBD196
accent
#DF48A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7542CA

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

Preview Lab → · Contrast checker → · Palette generator →

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