#7540C9#7540C9

#7540C9 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.201 H 296.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7540C9
RGBrgb(117, 64, 201)
HSLhsl(263, 56%, 52%)
HSVhsv(263, 68%, 79%)
CMYKcmyk(41.8%, 68.2%, 0%, 21.2%)
CIE-LABlab(40.68, 51.64, -62.96)
CIE-LCHlch(40.68, 81.43, 309.36°)
OKLaboklab(51.13% 0.0889 -0.1799)
OKLCHoklch(51.13% 0.201 296.3)
XYZxyz(19.7094, 11.6653, 56.4602)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540C9 #94C940
analogous
#4050C9 #7540C9 #BA40C9
triadic
#7540C9 #C97540 #40C975
tetradic
#7540C9 #C94050 #94C940 #40C9BA
square
#7540C9 #C94050 #94C940 #40C9BA
split-complementary
#7540C9 #C9BA40 #50C940
monochromatic
#3E1F6F #592D9F #7540C9 #9770D6 #BA9FE4

Accessibility & contrast

On white

6.30
#7540C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7540C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540C9
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540C9#FFFFFF#000000##FFFFFF
##7540C91.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#5F617F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7540c9;
/* rgb */ color: rgb(117, 64, 201);
/* oklch */ color: oklch(51.1% 0.201 296.3);
Tailwind
colors: {
  custom: {
    50: '#a379da',
    500: '#7540c9',
    950: '#000000',
  },
}
SCSS
$custom: #7540c9;
$custom-light: #a379da;
$custom-dark: #000000;
JSON
{
  "hex": "#7540c9",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 263.212,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5113,
    "c": 0.20064,
    "h": 296.3
  },
  "luminance": 0.11666
}

Semantic roles & 50–950 ramp

primary
#7540C9
secondary
#B9D094
accent
#DF49A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540C9

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

Preview Lab → · Contrast checker → · Palette generator →

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