#7540CB#7540CB

#7540CB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.203 H 295.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7540CB
RGBrgb(117, 64, 203)
HSLhsl(263, 57%, 52%)
HSVhsv(263, 68%, 80%)
CMYKcmyk(42.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.83, 52.16, -63.87)
CIE-LCHlch(40.83, 82.46, 309.24°)
OKLaboklab(51.29% 0.0886 -0.1825)
OKLCHoklch(51.29% 0.203 295.9)
XYZxyz(19.9462, 11.7601, 57.7073)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540CB #96CB40
analogous
#4050CB #7540CB #BB40CB
triadic
#7540CB #CB7540 #40CB75
tetradic
#7540CB #CB4050 #96CB40 #40CBBB
square
#7540CB #CB4050 #96CB40 #40CBBB
split-complementary
#7540CB #CBBB40 #50CB40
monochromatic
#3E1F72 #592CA2 #7540CB #9870D8 #BBA0E5

Accessibility & contrast

On white

6.26
#7540CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7540CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540CB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540CB#FFFFFF#000000##FFFFFF
##7540CB1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#5E6281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7540cb;
/* rgb */ color: rgb(117, 64, 203);
/* oklch */ color: oklch(51.3% 0.203 295.9);
Tailwind
colors: {
  custom: {
    50: '#a479dc',
    500: '#7540cb',
    950: '#000000',
  },
}
SCSS
$custom: #7540cb;
$custom-light: #a479dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7540cb",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 262.878,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51287,
    "c": 0.20291,
    "h": 295.9
  },
  "luminance": 0.1176
}

Semantic roles & 50–950 ramp

primary
#7540CB
secondary
#BBD295
accent
#E047A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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