#7542CD#7542CD

#7542CD is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.203 H 295.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7542CD
RGBrgb(117, 66, 205)
HSLhsl(262, 58%, 53%)
HSVhsv(262, 68%, 80%)
CMYKcmyk(42.9%, 67.8%, 0%, 19.6%)
CIE-LABlab(41.35, 51.67, -64.18)
CIE-LCHlch(41.35, 82.39, 308.84°)
OKLaboklab(51.71% 0.0863 -0.1835)
OKLCHoklch(51.71% 0.203 295.2)
XYZxyz(20.3008, 12.0856, 59.0089)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542CD #9ACD42
analogous
#4254CD #7542CD #BA42CD
triadic
#7542CD #CD7542 #42CD75
tetradic
#7542CD #CD4254 #9ACD42 #42CDBA
square
#7542CD #CD4254 #9ACD42 #42CDBA
split-complementary
#7542CD #CDBA42 #54CD42
monochromatic
#3F1F76 #592CA6 #7542CD #9872DA #BCA3E7

Accessibility & contrast

On white

6.15
#7542CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7542CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542CD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542CD#FFFFFF#000000##FFFFFF
##7542CD1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#5D6482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7542cd;
/* rgb */ color: rgb(117, 66, 205);
/* oklch */ color: oklch(51.7% 0.203 295.2);
Tailwind
colors: {
  custom: {
    50: '#a47add',
    500: '#7542cd',
    950: '#000000',
  },
}
SCSS
$custom: #7542cd;
$custom-light: #a47add;
$custom-dark: #000000;
JSON
{
  "hex": "#7542cd",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 262.014,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51707,
    "c": 0.20274,
    "h": 295.2
  },
  "luminance": 0.12086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7542CD

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

Preview Lab → · Contrast checker → · Palette generator →

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