#7540CE#7540CE

#7540CE is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.206 H 295.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7540CE
RGBrgb(117, 64, 206)
HSLhsl(262, 59%, 53%)
HSVhsv(262, 69%, 81%)
CMYKcmyk(43.2%, 68.9%, 0%, 19.2%)
CIE-LABlab(41.06, 52.95, -65.23)
CIE-LCHlch(41.06, 84.01, 309.07°)
OKLaboklab(51.53% 0.0881 -0.1865)
OKLCHoklch(51.53% 0.206 295.3)
XYZxyz(20.3071, 11.9044, 59.6084)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540CE #99CE40
analogous
#4052CE #7540CE #BC40CE
triadic
#7540CE #CE7540 #40CE75
tetradic
#7540CE #CE4052 #99CE40 #40CEBC
square
#7540CE #CE4052 #99CE40 #40CEBC
split-complementary
#7540CE #CEBC40 #52CE40
monochromatic
#3F1E75 #592BA6 #7540CE #9871DA #BBA1E7

Accessibility & contrast

On white

6.21
#7540CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7540CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540CE
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540CE#FFFFFF#000000##FFFFFF
##7540CE1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#5D6382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7540ce;
/* rgb */ color: rgb(117, 64, 206);
/* oklch */ color: oklch(51.5% 0.206 295.3);
Tailwind
colors: {
  custom: {
    50: '#a479de',
    500: '#7540ce',
    950: '#000000',
  },
}
SCSS
$custom: #7540ce;
$custom-light: #a479de;
$custom-dark: #000000;
JSON
{
  "hex": "#7540ce",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 262.394,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51525,
    "c": 0.20629,
    "h": 295.3
  },
  "luminance": 0.11905
}

Semantic roles & 50–950 ramp

primary
#7540CE
secondary
#BDD496
accent
#E245A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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