#7542E2#7542E2

#7542E2 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.226 H 291.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7542E2
RGBrgb(117, 66, 226)
HSLhsl(259, 73%, 57%)
HSVhsv(259, 71%, 89%)
CMYKcmyk(48.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(43.02, 57.23, -73.51)
CIE-LCHlch(43.02, 93.16, 307.91°)
OKLaboklab(53.41% 0.0826 -0.2109)
OKLCHoklch(53.41% 0.226 291.4)
XYZxyz(23.0079, 13.1685, 73.2662)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542E2 #AFE242
analogous
#425FE2 #7542E2 #C542E2
triadic
#7542E2 #E27542 #42E275
tetradic
#7542E2 #E2425F #AFE242 #42E2C5
square
#7542E2 #E2425F #AFE242 #42E2C5
split-complementary
#7542E2 #E2C542 #5FE242
monochromatic
#3E1793 #551FC8 #7542E2 #9C77EA #C2ACF2

Accessibility & contrast

On white

5.78
#7542E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7542E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542E2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542E2#FFFFFF#000000##FFFFFF
##7542E21.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0062DF
Tritanopia (blue-blind)
#516C8E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7542e2;
/* rgb */ color: rgb(117, 66, 226);
/* oklch */ color: oklch(53.4% 0.226 291.4);
Tailwind
colors: {
  custom: {
    50: '#a67bec',
    500: '#7542e2',
    950: '#000000',
  },
}
SCSS
$custom: #7542e2;
$custom-light: #a67bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7542e2",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 259.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5341,
    "c": 0.22646,
    "h": 291.4
  },
  "luminance": 0.13169
}

Semantic roles & 50–950 ramp

primary
#7542E2
secondary
#CCE09F
accent
#F038B5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7542E2

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

Preview Lab → · Contrast checker → · Palette generator →

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