#7540D9#7540D9

#7540D9 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.219 H 293.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7540D9
RGBrgb(117, 64, 217)
HSLhsl(261, 67%, 55%)
HSVhsv(261, 71%, 85%)
CMYKcmyk(46.1%, 70.5%, 0%, 14.9%)
CIE-LABlab(41.93, 55.83, -70.13)
CIE-LCHlch(41.93, 89.64, 308.52°)
OKLaboklab(52.42% 0.0861 -0.201)
OKLCHoklch(52.42% 0.219 293.2)
XYZxyz(21.6904, 12.4578, 66.8939)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540D9 #A4D940
analogous
#4058D9 #7540D9 #C140D9
triadic
#7540D9 #D97540 #40D975
tetradic
#7540D9 #D94058 #A4D940 #40D9C1
square
#7540D9 #D94058 #A4D940 #40D9C1
split-complementary
#7540D9 #D9C140 #58D940
monochromatic
#3F1A84 #5724B7 #7540D9 #9A73E3 #BFA6ED

Accessibility & contrast

On white

6.01
#7540D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7540D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7540D9#FFFFFF#000000##FFFFFF
##7540D91.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0060D6
Tritanopia (blue-blind)
#576788
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7540d9;
/* rgb */ color: rgb(117, 64, 217);
/* oklch */ color: oklch(52.4% 0.219 293.2);
Tailwind
colors: {
  custom: {
    50: '#a579e6',
    500: '#7540d9',
    950: '#000000',
  },
}
SCSS
$custom: #7540d9;
$custom-light: #a579e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7540d9",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 260.784,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52416,
    "c": 0.21863,
    "h": 293.2
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#7540D9
secondary
#C4DA9A
accent
#EA3EAE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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