#7540BF#7540BF

#7540BF is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.189 H 298.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7540BF
RGBrgb(117, 64, 191)
HSLhsl(265, 50%, 50%)
HSVhsv(265, 66%, 75%)
CMYKcmyk(38.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.93, 49.05, -58.34)
CIE-LCHlch(39.93, 76.22, 310.05°)
OKLaboklab(50.36% 0.0903 -0.1663)
OKLCHoklch(50.36% 0.189 298.5)
XYZxyz(18.5711, 11.2100, 50.4654)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540BF #8ABF40
analogous
#404BBF #7540BF #B440BF
triadic
#7540BF #BF7540 #40BF75
tetradic
#7540BF #BF404B #8ABF40 #40BFB4
square
#7540BF #BF404B #8ABF40 #40BFB4
split-complementary
#7540BF #BFB440 #4BBF40
monochromatic
#3D2163 #593191 #7540BF #966ECE #B79CDE

Accessibility & contrast

On white

6.48
#7540BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7540BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540BF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540BF#FFFFFF#000000##FFFFFF
##7540BF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#645D7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7540bf;
/* rgb */ color: rgb(117, 64, 191);
/* oklch */ color: oklch(50.4% 0.189 298.5);
Tailwind
colors: {
  custom: {
    50: '#a278d3',
    500: '#7540bf',
    950: '#000000',
  },
}
SCSS
$custom: #7540bf;
$custom-light: #a278d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7540bf",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 265.039,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.5036,
    "c": 0.18923,
    "h": 298.5
  },
  "luminance": 0.1121
}

Semantic roles & 50–950 ramp

primary
#7540BF
secondary
#B2CA91
accent
#D94E9F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7540BF

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

Preview Lab → · Contrast checker → · Palette generator →

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