#7542CF#7542CF

#7542CF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.205 H 294.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7542CF
RGBrgb(117, 66, 207)
HSLhsl(262, 59%, 54%)
HSVhsv(262, 68%, 81%)
CMYKcmyk(43.5%, 68.1%, 0%, 18.8%)
CIE-LABlab(41.51, 52.20, -65.08)
CIE-LCHlch(41.51, 83.43, 308.73°)
OKLaboklab(51.86% 0.086 -0.1861)
OKLCHoklch(51.86% 0.205 294.8)
XYZxyz(20.5438, 12.1828, 60.2885)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542CF #9CCF42
analogous
#4255CF #7542CF #BB42CF
triadic
#7542CF #CF7542 #42CF75
tetradic
#7542CF #CF4255 #9CCF42 #42CFBB
square
#7542CF #CF4255 #9CCF42 #42CFBB
split-complementary
#7542CF #CFBB42 #55CF42
monochromatic
#3F1F78 #582BA9 #7542CF #9973DB #BCA4E8

Accessibility & contrast

On white

6.11
#7542CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7542CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542CF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542CF#FFFFFF#000000##FFFFFF
##7542CF1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#5C6583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7542cf;
/* rgb */ color: rgb(117, 66, 207);
/* oklch */ color: oklch(51.9% 0.205 294.8);
Tailwind
colors: {
  custom: {
    50: '#a47adf',
    500: '#7542cf',
    950: '#000000',
  },
}
SCSS
$custom: #7542cf;
$custom-light: #a47adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7542cf",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 261.702,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51864,
    "c": 0.20502,
    "h": 294.8
  },
  "luminance": 0.12183
}

Semantic roles & 50–950 ramp

primary
#7542CF
secondary
#BFD598
accent
#E345AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7542CF

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

Preview Lab → · Contrast checker → · Palette generator →

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