#7540BD#7540BD

#7540BD is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.187 H 299.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7540BD
RGBrgb(117, 64, 189)
HSLhsl(265, 49%, 50%)
HSVhsv(265, 66%, 74%)
CMYKcmyk(38.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(39.79, 48.54, -57.41)
CIE-LCHlch(39.79, 75.18, 310.21°)
OKLaboklab(50.21% 0.0905 -0.1636)
OKLCHoklch(50.21% 0.187 299)
XYZxyz(18.3525, 11.1226, 49.3142)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540BD #88BD40
analogous
#404ABD #7540BD #B440BD
triadic
#7540BD #BD7540 #40BD75
tetradic
#7540BD #BD404A #88BD40 #40BDB4
square
#7540BD #BD404A #88BD40 #40BDB4
split-complementary
#7540BD #BDB440 #4ABD40
monochromatic
#3C2162 #59318F #7540BD #966DCD #B79ADD

Accessibility & contrast

On white

6.51
#7540BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7540BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540BD
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540BD#FFFFFF#000000##FFFFFF
##7540BD1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#645D79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7540bd;
/* rgb */ color: rgb(117, 64, 189);
/* oklch */ color: oklch(50.2% 0.187 299.0);
Tailwind
colors: {
  custom: {
    50: '#a278d2',
    500: '#7540bd',
    950: '#000000',
  },
}
SCSS
$custom: #7540bd;
$custom-light: #a278d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7540bd",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 265.44,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50209,
    "c": 0.18693,
    "h": 299
  },
  "luminance": 0.11123
}

Semantic roles & 50–950 ramp

primary
#7540BD
secondary
#B1C990
accent
#D94F9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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