#7540AE#7540AE

#7540AE is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.170 H 302.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7540AE
RGBrgb(117, 64, 174)
HSLhsl(269, 46%, 47%)
HSVhsv(269, 63%, 68%)
CMYKcmyk(32.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(38.73, 44.73, -50.26)
CIE-LCHlch(38.73, 67.28, 311.66°)
OKLaboklab(49.11% 0.0918 -0.1426)
OKLCHoklch(49.11% 0.17 302.8)
XYZxyz(16.8077, 10.5047, 41.1783)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540AE #79AE40
analogous
#4042AE #7540AE #AC40AE
triadic
#7540AE #AE7540 #40AE75
tetradic
#7540AE #AE4042 #79AE40 #40AEAC
square
#7540AE #AE4042 #79AE40 #40AEAC
split-complementary
#7540AE #AEAC40 #42AE40
monochromatic
#391F55 #573081 #7540AE #9465C6 #B392D7

Accessibility & contrast

On white

6.77
#7540AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7540AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540AE
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540AE#FFFFFF#000000##FFFFFF
##7540AE1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#1E5BAC
Tritanopia (blue-blind)
#6A5771
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7540ae;
/* rgb */ color: rgb(117, 64, 174);
/* oklch */ color: oklch(49.1% 0.170 302.8);
Tailwind
colors: {
  custom: {
    50: '#a178c7',
    500: '#7540ae',
    950: '#000000',
  },
}
SCSS
$custom: #7540ae;
$custom-light: #a178c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7540ae",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 268.909,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49115,
    "c": 0.16958,
    "h": 302.8
  },
  "luminance": 0.10505
}

Semantic roles & 50–950 ramp

primary
#7540AE
secondary
#A6C288
accent
#D65296
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7540AE

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

Preview Lab → · Contrast checker → · Palette generator →

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