#7540BC#7540BC

#7540BC is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.186 H 299.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7540BC
RGBrgb(117, 64, 188)
HSLhsl(266, 49%, 49%)
HSVhsv(266, 66%, 74%)
CMYKcmyk(37.8%, 66%, 0%, 26.3%)
CIE-LABlab(39.71, 48.28, -56.94)
CIE-LCHlch(39.71, 74.65, 310.30°)
OKLaboklab(50.13% 0.0906 -0.1622)
OKLCHoklch(50.13% 0.186 299.2)
XYZxyz(18.2444, 11.0793, 48.7445)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540BC #87BC40
analogous
#4049BC #7540BC #B340BC
triadic
#7540BC #BC7540 #40BC75
tetradic
#7540BC #BC4049 #87BC40 #40BCB3
square
#7540BC #BC4049 #87BC40 #40BCB3
split-complementary
#7540BC #BCB340 #49BC40
monochromatic
#3C2161 #59308E #7540BC #966CCD #B69ADD

Accessibility & contrast

On white

6.53
#7540BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7540BC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540BC#FFFFFF#000000##FFFFFF
##7540BC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#655C78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7540bc;
/* rgb */ color: rgb(117, 64, 188);
/* oklch */ color: oklch(50.1% 0.186 299.2);
Tailwind
colors: {
  custom: {
    50: '#a278d1',
    500: '#7540bc',
    950: '#000000',
  },
}
SCSS
$custom: #7540bc;
$custom-light: #a278d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7540bc",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 265.645,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50134,
    "c": 0.18578,
    "h": 299.2
  },
  "luminance": 0.1108
}

Semantic roles & 50–950 ramp

primary
#7540BC
secondary
#B0C98F
accent
#D94F9E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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