#7540AA#7540AA

#7540AA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.165 H 303.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7540AA
RGBrgb(117, 64, 170)
HSLhsl(270, 45%, 46%)
HSVhsv(270, 62%, 67%)
CMYKcmyk(31.2%, 62.4%, 0%, 33.3%)
CIE-LABlab(38.47, 43.73, -48.32)
CIE-LCHlch(38.47, 65.17, 312.15°)
OKLaboklab(48.84% 0.092 -0.1368)
OKLCHoklch(48.84% 0.165 303.9)
XYZxyz(16.4236, 10.3510, 39.1551)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540AA #75AA40
analogous
#4040AA #7540AA #AA40AA
triadic
#7540AA #AA7540 #40AA75
tetradic
#7540AA #AA4040 #75AA40 #40AAAA
square
#7540AA #AA4040 #75AA40 #40AAAA
split-complementary
#7540AA #AAAA40 #40AA40
monochromatic
#381F51 #562F7E #7540AA #9463C4 #B28FD5

Accessibility & contrast

On white

6.84
#7540AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7540AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7540AA#FFFFFF#000000##FFFFFF
##7540AA1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#245AA8
Tritanopia (blue-blind)
#6B566F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7540aa;
/* rgb */ color: rgb(117, 64, 170);
/* oklch */ color: oklch(48.8% 0.165 303.9);
Tailwind
colors: {
  custom: {
    50: '#a078c4',
    500: '#7540aa',
    950: '#000000',
  },
}
SCSS
$custom: #7540aa;
$custom-light: #a078c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7540aa",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 270,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48835,
    "c": 0.16491,
    "h": 303.9
  },
  "luminance": 0.10351
}

Semantic roles & 50–950 ramp

primary
#7540AA
secondary
#A3C086
accent
#D55394
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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