#7540D7#7540D7

#7540D7 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.216 H 293.6°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7540D7
RGBrgb(117, 64, 215)
HSLhsl(261, 65%, 55%)
HSVhsv(261, 70%, 84%)
CMYKcmyk(45.6%, 70.2%, 0%, 15.7%)
CIE-LABlab(41.77, 55.30, -69.25)
CIE-LCHlch(41.77, 88.62, 308.61°)
OKLaboklab(52.25% 0.0865 -0.1984)
OKLCHoklch(52.25% 0.216 293.6)
XYZxyz(21.4319, 12.3543, 65.5322)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540D7 #A2D740
analogous
#4056D7 #7540D7 #C140D7
triadic
#7540D7 #D77540 #40D775
tetradic
#7540D7 #D74056 #A2D740 #40D7C1
square
#7540D7 #D74056 #A2D740 #40D7C1
split-complementary
#7540D7 #D7C140 #56D740
monochromatic
#3F1B81 #5826B4 #7540D7 #9A73E2 #BEA5EC

Accessibility & contrast

On white

6.05
#7540D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7540D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540D7
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540D7#FFFFFF#000000##FFFFFF
##7540D71.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#586687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7540d7;
/* rgb */ color: rgb(117, 64, 215);
/* oklch */ color: oklch(52.3% 0.216 293.6);
Tailwind
colors: {
  custom: {
    50: '#a579e4',
    500: '#7540d7',
    950: '#000000',
  },
}
SCSS
$custom: #7540d7;
$custom-light: #a579e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7540d7",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 261.06,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52252,
    "c": 0.21641,
    "h": 293.6
  },
  "luminance": 0.12355
}

Semantic roles & 50–950 ramp

primary
#7540D7
secondary
#C3D99A
accent
#E83FAD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7540D7

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

Preview Lab → · Contrast checker → · Palette generator →

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