#7540CF#7540CF

#7540CF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.207 H 295.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7540CF
RGBrgb(117, 64, 207)
HSLhsl(262, 60%, 53%)
HSVhsv(262, 69%, 81%)
CMYKcmyk(43.5%, 69.1%, 0%, 18.8%)
CIE-LABlab(41.14, 53.21, -65.68)
CIE-LCHlch(41.14, 84.52, 309.01°)
OKLaboklab(51.61% 0.0879 -0.1879)
OKLCHoklch(51.61% 0.207 295.1)
XYZxyz(20.4290, 11.9532, 60.2502)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540CF #9ACF40
analogous
#4052CF #7540CF #BD40CF
triadic
#7540CF #CF7540 #40CF75
tetradic
#7540CF #CF4052 #9ACF40 #40CFBD
square
#7540CF #CF4052 #9ACF40 #40CFBD
split-complementary
#7540CF #CFBD40 #52CF40
monochromatic
#3F1E77 #592AA8 #7540CF #9871DB #BCA2E8

Accessibility & contrast

On white

6.19
#7540CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7540CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540CF
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540CF#FFFFFF#000000##FFFFFF
##7540CF1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#5C6383
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7540cf;
/* rgb */ color: rgb(117, 64, 207);
/* oklch */ color: oklch(51.6% 0.207 295.1);
Tailwind
colors: {
  custom: {
    50: '#a479df',
    500: '#7540cf',
    950: '#000000',
  },
}
SCSS
$custom: #7540cf;
$custom-light: #a479df;
$custom-dark: #000000;
JSON
{
  "hex": "#7540cf",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 262.238,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51605,
    "c": 0.20742,
    "h": 295.1
  },
  "luminance": 0.11954
}

Semantic roles & 50–950 ramp

primary
#7540CF
secondary
#BDD497
accent
#E345A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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