#7540AC#7540AC

#7540AC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.167 H 303.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7540AC
RGBrgb(117, 64, 172)
HSLhsl(269, 46%, 46%)
HSVhsv(269, 63%, 67%)
CMYKcmyk(32%, 62.8%, 0%, 32.5%)
CIE-LABlab(38.60, 44.23, -49.29)
CIE-LCHlch(38.60, 66.23, 311.90°)
OKLaboklab(48.97% 0.092 -0.1397)
OKLCHoklch(48.97% 0.167 303.4)
XYZxyz(16.6142, 10.4273, 40.1591)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540AC #77AC40
analogous
#4041AC #7540AC #AB40AC
triadic
#7540AC #AC7540 #40AC75
tetradic
#7540AC #AC4041 #77AC40 #40ACAB
square
#7540AC #AC4041 #77AC40 #40ACAB
split-complementary
#7540AC #ACAB40 #41AC40
monochromatic
#381F53 #572F7F #7540AC #9464C5 #B391D6

Accessibility & contrast

On white

6.81
#7540AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7540AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540AC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540AC#FFFFFF#000000##FFFFFF
##7540AC1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#215BAA
Tritanopia (blue-blind)
#6B5770
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7540ac;
/* rgb */ color: rgb(117, 64, 172);
/* oklch */ color: oklch(49.0% 0.167 303.4);
Tailwind
colors: {
  custom: {
    50: '#a178c5',
    500: '#7540ac',
    950: '#000000',
  },
}
SCSS
$custom: #7540ac;
$custom-light: #a178c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7540ac",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 269.444,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48974,
    "c": 0.16725,
    "h": 303.4
  },
  "luminance": 0.10427
}

Semantic roles & 50–950 ramp

primary
#7540AC
secondary
#A4C187
accent
#D55295
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7540AC

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

Preview Lab → · Contrast checker → · Palette generator →

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