#7540D2#7540D2

#7540D2 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.211 H 294.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7540D2
RGBrgb(117, 64, 210)
HSLhsl(262, 62%, 54%)
HSVhsv(262, 70%, 82%)
CMYKcmyk(44.3%, 69.5%, 0%, 17.6%)
CIE-LABlab(41.38, 53.99, -67.02)
CIE-LCHlch(41.38, 86.07, 308.85°)
OKLaboklab(51.85% 0.0874 -0.1918)
OKLCHoklch(51.85% 0.211 294.5)
XYZxyz(20.7992, 12.1013, 62.2002)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540D2 #9DD240
analogous
#4054D2 #7540D2 #BE40D2
triadic
#7540D2 #D27540 #40D275
tetradic
#7540D2 #D24054 #9DD240 #40D2BE
square
#7540D2 #D24054 #9DD240 #40D2BE
split-complementary
#7540D2 #D2BE40 #54D240
monochromatic
#3F1D7B #5829AC #7540D2 #9972DE #BDA3E9

Accessibility & contrast

On white

6.14
#7540D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7540D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7540D2#FFFFFF#000000##FFFFFF
##7540D21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#5B6584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7540d2;
/* rgb */ color: rgb(117, 64, 210);
/* oklch */ color: oklch(51.8% 0.211 294.5);
Tailwind
colors: {
  custom: {
    50: '#a479e1',
    500: '#7540d2',
    950: '#000000',
  },
}
SCSS
$custom: #7540d2;
$custom-light: #a479e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7540d2",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 261.781,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51845,
    "c": 0.2108,
    "h": 294.5
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#7540D2
secondary
#BFD698
accent
#E543AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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