#7542D2#7542D2

#7542D2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.208 H 294.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7542D2
RGBrgb(117, 66, 210)
HSLhsl(261, 62%, 54%)
HSVhsv(261, 69%, 82%)
CMYKcmyk(44.3%, 68.6%, 0%, 17.6%)
CIE-LABlab(41.74, 52.99, -66.44)
CIE-LCHlch(41.74, 84.98, 308.58°)
OKLaboklab(52.1% 0.0855 -0.1901)
OKLCHoklch(52.1% 0.208 294.2)
XYZxyz(20.9140, 12.3309, 62.2385)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542D2 #9FD242
analogous
#4257D2 #7542D2 #BD42D2
triadic
#7542D2 #D27542 #42D275
tetradic
#7542D2 #D24257 #9FD242 #42D2BD
square
#7542D2 #D24257 #9FD242 #42D2BD
split-complementary
#7542D2 #D2BD42 #57D242
monochromatic
#3F1E7C #5829AD #7542D2 #9973DE #BDA5EA

Accessibility & contrast

On white

6.06
#7542D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7542D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542D2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542D2#FFFFFF#000000##FFFFFF
##7542D21.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0060CF
Tritanopia (blue-blind)
#5B6685
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7542d2;
/* rgb */ color: rgb(117, 66, 210);
/* oklch */ color: oklch(52.1% 0.208 294.2);
Tailwind
colors: {
  custom: {
    50: '#a47ae1',
    500: '#7542d2',
    950: '#000000',
  },
}
SCSS
$custom: #7542d2;
$custom-light: #a47ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7542d2",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 261.25,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52103,
    "c": 0.20844,
    "h": 294.2
  },
  "luminance": 0.12331
}

Semantic roles & 50–950 ramp

primary
#7542D2
secondary
#C1D799
accent
#E543AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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