#7540BE#7540BE

#7540BE is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.188 H 298.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7540BE
RGBrgb(117, 64, 190)
HSLhsl(265, 50%, 50%)
HSVhsv(265, 66%, 75%)
CMYKcmyk(38.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(39.86, 48.79, -57.88)
CIE-LCHlch(39.86, 75.70, 310.13°)
OKLaboklab(50.28% 0.0904 -0.1649)
OKLCHoklch(50.28% 0.188 298.7)
XYZxyz(18.4614, 11.1662, 49.8879)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540BE #89BE40
analogous
#404ABE #7540BE #B440BE
triadic
#7540BE #BE7540 #40BE75
tetradic
#7540BE #BE404A #89BE40 #40BEB4
square
#7540BE #BE404A #89BE40 #40BEB4
split-complementary
#7540BE #BEB440 #4ABE40
monochromatic
#3D2162 #593190 #7540BE #966DCE #B79BDD

Accessibility & contrast

On white

6.50
#7540BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7540BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540BE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540BE#FFFFFF#000000##FFFFFF
##7540BE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7540be;
/* rgb */ color: rgb(117, 64, 190);
/* oklch */ color: oklch(50.3% 0.188 298.7);
Tailwind
colors: {
  custom: {
    50: '#a278d2',
    500: '#7540be',
    950: '#000000',
  },
}
SCSS
$custom: #7540be;
$custom-light: #a278d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7540be",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 265.238,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50284,
    "c": 0.18808,
    "h": 298.7
  },
  "luminance": 0.11166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7540BE

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

Preview Lab → · Contrast checker → · Palette generator →

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