#7540A2#7540A2

#7540A2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.3% C 0.156 H 306.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7540A2
RGBrgb(117, 64, 162)
HSLhsl(272, 43%, 44%)
HSVhsv(272, 60%, 64%)
CMYKcmyk(27.8%, 60.5%, 0%, 36.5%)
CIE-LABlab(37.95, 41.76, -44.37)
CIE-LCHlch(37.95, 60.93, 313.26°)
OKLaboklab(48.29% 0.0923 -0.1253)
OKLCHoklch(48.29% 0.156 306.4)
XYZxyz(15.6897, 10.0575, 35.2902)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540A2 #6DA240
analogous
#4440A2 #7540A2 #A2409E
triadic
#7540A2 #A27540 #40A275
tetradic
#7540A2 #A24440 #6DA240 #409EA2
square
#7540A2 #A24440 #6DA240 #409EA2
split-complementary
#7540A2 #9EA240 #40A244
monochromatic
#361D4A #552F76 #7540A2 #945FC0 #B18BD1

Accessibility & contrast

On white

6.97
#7540A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7540A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7540A2#FFFFFF#000000##FFFFFF
##7540A21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1458A5
Deuteranopia (green-blind)
#2E5AA0
Tritanopia (blue-blind)
#6E536B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7540a2;
/* rgb */ color: rgb(117, 64, 162);
/* oklch */ color: oklch(48.3% 0.156 306.4);
Tailwind
colors: {
  custom: {
    50: '#a077be',
    500: '#7540a2',
    950: '#000000',
  },
}
SCSS
$custom: #7540a2;
$custom-light: #a077be;
$custom-dark: #000000;
JSON
{
  "hex": "#7540a2",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 272.449,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4829,
    "c": 0.15557,
    "h": 306.4
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

primary
#7540A2
secondary
#9DBC82
accent
#D3558F
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7540A2

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

Preview Lab → · Contrast checker → · Palette generator →

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