#7540BB#7540BB

#7540BB is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.185 H 299.4°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7540BB
RGBrgb(117, 64, 187)
HSLhsl(266, 49%, 49%)
HSVhsv(266, 66%, 73%)
CMYKcmyk(37.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(39.64, 48.02, -56.47)
CIE-LCHlch(39.64, 74.13, 310.38°)
OKLaboklab(50.06% 0.0907 -0.1608)
OKLCHoklch(50.06% 0.185 299.4)
XYZxyz(18.1369, 11.0364, 48.1788)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540BB #86BB40
analogous
#4048BB #7540BB #B340BB
triadic
#7540BB #BB7540 #40BB75
tetradic
#7540BB #BB4048 #86BB40 #40BBB3
square
#7540BB #BB4048 #86BB40 #40BBB3
split-complementary
#7540BB #BBB340 #48BB40
monochromatic
#3C2160 #58308D #7540BB #956CCD #B699DC

Accessibility & contrast

On white

6.55
#7540BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7540BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540BB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540BB#FFFFFF#000000##FFFFFF
##7540BB1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#655C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7540bb;
/* rgb */ color: rgb(117, 64, 187);
/* oklch */ color: oklch(50.1% 0.185 299.4);
Tailwind
colors: {
  custom: {
    50: '#a278d0',
    500: '#7540bb',
    950: '#000000',
  },
}
SCSS
$custom: #7540bb;
$custom-light: #a278d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7540bb",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 265.854,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.18463,
    "h": 299.4
  },
  "luminance": 0.11037
}

Semantic roles & 50–950 ramp

primary
#7540BB
secondary
#AFC88F
accent
#D94F9D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7540BB

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

Preview Lab → · Contrast checker → · Palette generator →

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