#7540C7#7540C7

#7540C7 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.198 H 296.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7540C7
RGBrgb(117, 64, 199)
HSLhsl(264, 55%, 52%)
HSVhsv(264, 68%, 78%)
CMYKcmyk(41.2%, 67.8%, 0%, 22%)
CIE-LABlab(40.53, 51.12, -62.04)
CIE-LCHlch(40.53, 80.39, 309.49°)
OKLaboklab(50.97% 0.0892 -0.1772)
OKLCHoklch(50.97% 0.198 296.7)
XYZxyz(19.4756, 11.5718, 55.2292)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540C7 #92C740
analogous
#404FC7 #7540C7 #B940C7
triadic
#7540C7 #C77540 #40C775
tetradic
#7540C7 #C7404F #92C740 #40C7B9
square
#7540C7 #C7404F #92C740 #40C7B9
split-complementary
#7540C7 #C7B940 #4FC740
monochromatic
#3E206D #592E9C #7540C7 #976FD5 #B99FE3

Accessibility & contrast

On white

6.34
#7540C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7540C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540C7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540C7#FFFFFF#000000##FFFFFF
##7540C71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#60607E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7540c7;
/* rgb */ color: rgb(117, 64, 199);
/* oklch */ color: oklch(51.0% 0.198 296.7);
Tailwind
colors: {
  custom: {
    50: '#a378d9',
    500: '#7540c7',
    950: '#000000',
  },
}
SCSS
$custom: #7540c7;
$custom-light: #a378d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7540c7",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 263.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50974,
    "c": 0.19836,
    "h": 296.7
  },
  "luminance": 0.11572
}

Semantic roles & 50–950 ramp

primary
#7540C7
secondary
#B8CF94
accent
#DE4AA4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540C7

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

Preview Lab → · Contrast checker → · Palette generator →

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