#7540CC#7540CC

#7540CC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.204 H 295.7°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7540CC
RGBrgb(117, 64, 204)
HSLhsl(263, 58%, 53%)
HSVhsv(263, 69%, 80%)
CMYKcmyk(42.6%, 68.6%, 0%, 20%)
CIE-LABlab(40.91, 52.42, -64.32)
CIE-LCHlch(40.91, 82.98, 309.18°)
OKLaboklab(51.37% 0.0884 -0.1839)
OKLCHoklch(51.37% 0.204 295.7)
XYZxyz(20.0657, 11.8079, 58.3370)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540CC #97CC40
analogous
#4051CC #7540CC #BB40CC
triadic
#7540CC #CC7540 #40CC75
tetradic
#7540CC #CC4051 #97CC40 #40CCBB
square
#7540CC #CC4051 #97CC40 #40CCBB
split-complementary
#7540CC #CCBB40 #51CC40
monochromatic
#3F1F73 #592CA3 #7540CC #9870D9 #BBA1E6

Accessibility & contrast

On white

6.25
#7540CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7540CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540CC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540CC#FFFFFF#000000##FFFFFF
##7540CC1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7540cc;
/* rgb */ color: rgb(117, 64, 204);
/* oklch */ color: oklch(51.4% 0.204 295.7);
Tailwind
colors: {
  custom: {
    50: '#a479dc',
    500: '#7540cc',
    950: '#000000',
  },
}
SCSS
$custom: #7540cc;
$custom-light: #a479dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7540cc",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 262.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.20403,
    "h": 295.7
  },
  "luminance": 0.11808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7540CC

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

Preview Lab → · Contrast checker → · Palette generator →

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