#7540BA#7540BA

#7540BA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.183 H 299.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7540BA
RGBrgb(117, 64, 186)
HSLhsl(266, 49%, 49%)
HSVhsv(266, 66%, 73%)
CMYKcmyk(37.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(39.57, 47.77, -56.00)
CIE-LCHlch(39.57, 73.60, 310.46°)
OKLaboklab(49.99% 0.0908 -0.1594)
OKLCHoklch(49.99% 0.183 299.7)
XYZxyz(18.0303, 10.9937, 47.6169)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540BA #85BA40
analogous
#4048BA #7540BA #B240BA
triadic
#7540BA #BA7540 #40BA75
tetradic
#7540BA #BA4048 #85BA40 #40BAB2
square
#7540BA #BA4048 #85BA40 #40BAB2
split-complementary
#7540BA #BAB240 #48BA40
monochromatic
#3C215F #58308C #7540BA #956BCC #B699DC

Accessibility & contrast

On white

6.56
#7540BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7540BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540BA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540BA#FFFFFF#000000##FFFFFF
##7540BA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#665C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7540ba;
/* rgb */ color: rgb(117, 64, 186);
/* oklch */ color: oklch(50.0% 0.183 299.7);
Tailwind
colors: {
  custom: {
    50: '#a278d0',
    500: '#7540ba',
    950: '#000000',
  },
}
SCSS
$custom: #7540ba;
$custom-light: #a278d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7540ba",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 266.066,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49985,
    "c": 0.18348,
    "h": 299.7
  },
  "luminance": 0.10994
}

Semantic roles & 50–950 ramp

primary
#7540BA
secondary
#AFC88E
accent
#D84F9D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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