#7540B5#7540B5

#7540B5 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.178 H 300.9°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7540B5
RGBrgb(117, 64, 181)
HSLhsl(267, 48%, 48%)
HSVhsv(267, 65%, 71%)
CMYKcmyk(35.4%, 64.6%, 0%, 29%)
CIE-LABlab(39.22, 46.49, -53.63)
CIE-LCHlch(39.22, 70.98, 310.92°)
OKLaboklab(49.62% 0.0913 -0.1524)
OKLCHoklch(49.62% 0.178 300.9)
XYZxyz(17.5080, 10.7848, 44.8664)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540B5 #80B540
analogous
#4046B5 #7540B5 #AF40B5
triadic
#7540B5 #B57540 #40B575
tetradic
#7540B5 #B54046 #80B540 #40B5AF
square
#7540B5 #B54046 #80B540 #40B5AF
split-complementary
#7540B5 #B5AF40 #46B540
monochromatic
#3B205B #583088 #7540B5 #9568CA #B496DA

Accessibility & contrast

On white

6.65
#7540B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7540B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7540B5#FFFFFF#000000##FFFFFF
##7540B51.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#0D5CB2
Tritanopia (blue-blind)
#675A75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7540b5;
/* rgb */ color: rgb(117, 64, 181);
/* oklch */ color: oklch(49.6% 0.178 300.9);
Tailwind
colors: {
  custom: {
    50: '#a178cc',
    500: '#7540b5',
    950: '#000000',
  },
}
SCSS
$custom: #7540b5;
$custom-light: #a178cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7540b5",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 267.179,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49617,
    "c": 0.17771,
    "h": 300.9
  },
  "luminance": 0.10785
}

Semantic roles & 50–950 ramp

primary
#7540B5
secondary
#ABC58B
accent
#D7509A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7540B5

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

Preview Lab → · Contrast checker → · Palette generator →

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