#7542BA#7542BA

#7542BA is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.181 H 299.3°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7542BA
RGBrgb(117, 66, 186)
HSLhsl(266, 48%, 49%)
HSVhsv(266, 65%, 73%)
CMYKcmyk(37.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(39.95, 46.72, -55.38)
CIE-LCHlch(39.95, 72.45, 310.15°)
OKLaboklab(50.26% 0.0886 -0.1576)
OKLCHoklch(50.26% 0.181 299.3)
XYZxyz(18.1451, 11.2233, 47.6552)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7542BA #87BA42
analogous
#424BBA #7542BA #B142BA
triadic
#7542BA #BA7542 #42BA75
tetradic
#7542BA #BA424B #87BA42 #42BAB1
square
#7542BA #BA424B #87BA42 #42BAB1
split-complementary
#7542BA #BAB142 #4BBA42
monochromatic
#3C2260 #59328D #7542BA #966ECB #B69BDB

Accessibility & contrast

On white

6.47
#7542BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7542BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7542BA
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7542BA#FFFFFF#000000##FFFFFF
##7542BA1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#015DB7
Tritanopia (blue-blind)
#655D78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7542ba;
/* rgb */ color: rgb(117, 66, 186);
/* oklch */ color: oklch(50.3% 0.181 299.3);
Tailwind
colors: {
  custom: {
    50: '#a279cf',
    500: '#7542ba',
    950: '#000000',
  },
}
SCSS
$custom: #7542ba;
$custom-light: #a279cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7542ba",
  "rgb": {
    "r": 117,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 265.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50262,
    "c": 0.18078,
    "h": 299.3
  },
  "luminance": 0.11224
}

Semantic roles & 50–950 ramp

primary
#7542BA
secondary
#B0C890
accent
#D7519E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7542BA

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

Preview Lab → · Contrast checker → · Palette generator →

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