#7540AF#7540AF

#7540AF is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.171 H 302.5°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7540AF
RGBrgb(117, 64, 175)
HSLhsl(269, 46%, 47%)
HSVhsv(269, 63%, 69%)
CMYKcmyk(33.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(38.80, 44.98, -50.75)
CIE-LCHlch(38.80, 67.81, 311.55°)
OKLaboklab(49.19% 0.0918 -0.144)
OKLCHoklch(49.19% 0.171 302.5)
XYZxyz(16.9056, 10.5438, 41.6937)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540AF #7AAF40
analogous
#4042AF #7540AF #AD40AF
triadic
#7540AF #AF7540 #40AF75
tetradic
#7540AF #AF4042 #7AAF40 #40AFAD
square
#7540AF #AF4042 #7AAF40 #40AFAD
split-complementary
#7540AF #AFAD40 #42AF40
monochromatic
#391F55 #573082 #7540AF #9465C7 #B392D7

Accessibility & contrast

On white

6.76
#7540AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7540AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7540AF#FFFFFF#000000##FFFFFF
##7540AF1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#1C5BAD
Tritanopia (blue-blind)
#6A5871
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7540af;
/* rgb */ color: rgb(117, 64, 175);
/* oklch */ color: oklch(49.2% 0.171 302.5);
Tailwind
colors: {
  custom: {
    50: '#a178c8',
    500: '#7540af',
    950: '#000000',
  },
}
SCSS
$custom: #7540af;
$custom-light: #a178c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7540af",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 268.649,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49186,
    "c": 0.17074,
    "h": 302.5
  },
  "luminance": 0.10544
}

Semantic roles & 50–950 ramp

primary
#7540AF
secondary
#A7C388
accent
#D65297
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7540AF

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

Preview Lab → · Contrast checker → · Palette generator →

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