#7540CA#7540CA

#7540CA is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.202 H 296.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7540CA
RGBrgb(117, 64, 202)
HSLhsl(263, 57%, 52%)
HSVhsv(263, 68%, 79%)
CMYKcmyk(42.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(40.76, 51.90, -63.41)
CIE-LCHlch(40.76, 81.94, 309.30°)
OKLaboklab(51.21% 0.0887 -0.1812)
OKLCHoklch(51.21% 0.202 296.1)
XYZxyz(19.8274, 11.7125, 57.0818)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540CA #95CA40
analogous
#4050CA #7540CA #BA40CA
triadic
#7540CA #CA7540 #40CA75
tetradic
#7540CA #CA4050 #95CA40 #40CABA
square
#7540CA #CA4050 #95CA40 #40CABA
split-complementary
#7540CA #CABA40 #50CA40
monochromatic
#3E1F70 #592CA0 #7540CA #9870D7 #BAA0E5

Accessibility & contrast

On white

6.28
#7540CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7540CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540CA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540CA#FFFFFF#000000##FFFFFF
##7540CA1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#5F6280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7540ca;
/* rgb */ color: rgb(117, 64, 202);
/* oklch */ color: oklch(51.2% 0.202 296.1);
Tailwind
colors: {
  custom: {
    50: '#a379db',
    500: '#7540ca',
    950: '#000000',
  },
}
SCSS
$custom: #7540ca;
$custom-light: #a379db;
$custom-dark: #000000;
JSON
{
  "hex": "#7540ca",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 263.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51208,
    "c": 0.20177,
    "h": 296.1
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#7540CA
secondary
#BAD195
accent
#E048A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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