#7542BB#7542BB

#7542BB is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.182 H 299.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7542BB
RGBrgb(117, 66, 187)
HSLhsl(265, 48%, 50%)
HSVhsv(265, 65%, 73%)
CMYKcmyk(37.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.02, 46.98, -55.85)
CIE-LCHlch(40.02, 72.98, 310.07°)
OKLaboklab(50.33% 0.0885 -0.159)
OKLCHoklch(50.33% 0.182 299.1)
XYZxyz(18.2517, 11.2660, 48.2170)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542BB #88BB42
analogous
#424CBB #7542BB #B142BB
triadic
#7542BB #BB7542 #42BB75
tetradic
#7542BB #BB424C #88BB42 #42BBB1
square
#7542BB #BB424C #88BB42 #42BBB1
split-complementary
#7542BB #BBB142 #4CBB42
monochromatic
#3C2261 #59328E #7542BB #966ECC #B79CDC

Accessibility & contrast

On white

6.46
#7542BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7542BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542BB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542BB#FFFFFF#000000##FFFFFF
##7542BB1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#655D79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7542bb;
/* rgb */ color: rgb(117, 66, 187);
/* oklch */ color: oklch(50.3% 0.182 299.1);
Tailwind
colors: {
  custom: {
    50: '#a279d0',
    500: '#7542bb',
    950: '#000000',
  },
}
SCSS
$custom: #7542bb;
$custom-light: #a279d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7542bb",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 265.289,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50335,
    "c": 0.18195,
    "h": 299.1
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#7542BB
secondary
#B1C891
accent
#D7509F
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7542BB

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

Preview Lab → · Contrast checker → · Palette generator →

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