#7542BE#7542BE

#7542BE is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.185 H 298.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7542BE
RGBrgb(117, 66, 190)
HSLhsl(265, 49%, 50%)
HSVhsv(265, 65%, 75%)
CMYKcmyk(38.4%, 65.3%, 0%, 25.5%)
CIE-LABlab(40.24, 47.75, -57.26)
CIE-LCHlch(40.24, 74.56, 309.83°)
OKLaboklab(50.56% 0.0882 -0.1631)
OKLCHoklch(50.56% 0.185 298.4)
XYZxyz(18.5763, 11.3958, 49.9261)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542BE #8BBE42
analogous
#424DBE #7542BE #B342BE
triadic
#7542BE #BE7542 #42BE75
tetradic
#7542BE #BE424D #8BBE42 #42BEB3
square
#7542BE #BE424D #8BBE42 #42BEB3
split-complementary
#7542BE #BEB342 #4DBE42
monochromatic
#3D2263 #593291 #7542BE #9670CE #B89DDD

Accessibility & contrast

On white

6.40
#7542BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7542BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542BE
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542BE#FFFFFF#000000##FFFFFF
##7542BE1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#645E7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7542be;
/* rgb */ color: rgb(117, 66, 190);
/* oklch */ color: oklch(50.6% 0.185 298.4);
Tailwind
colors: {
  custom: {
    50: '#a279d2',
    500: '#7542be',
    950: '#000000',
  },
}
SCSS
$custom: #7542be;
$custom-light: #a279d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7542be",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 264.677,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.18545,
    "h": 298.4
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#7542BE
secondary
#B3CA92
accent
#D84FA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7542BE

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

Preview Lab → · Contrast checker → · Palette generator →

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