#7540D3#7540D3

#7540D3 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.212 H 294.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7540D3
RGBrgb(117, 64, 211)
HSLhsl(262, 63%, 54%)
HSVhsv(262, 70%, 83%)
CMYKcmyk(44.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(41.46, 54.25, -67.47)
CIE-LCHlch(41.46, 86.58, 308.80°)
OKLaboklab(51.93% 0.0872 -0.1931)
OKLCHoklch(51.93% 0.212 294.3)
XYZxyz(20.9242, 12.1513, 62.8584)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540D3 #9ED340
analogous
#4055D3 #7540D3 #BF40D3
triadic
#7540D3 #D37540 #40D375
tetradic
#7540D3 #D34055 #9ED340 #40D3BF
square
#7540D3 #D34055 #9ED340 #40D3BF
split-complementary
#7540D3 #D3BF40 #55D340
monochromatic
#3F1D7C #5828AE #7540D3 #9972DE #BDA3EA

Accessibility & contrast

On white

6.12
#7540D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7540D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540D3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540D3#FFFFFF#000000##FFFFFF
##7540D31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005FD0
Tritanopia (blue-blind)
#5A6585
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7540d3;
/* rgb */ color: rgb(117, 64, 211);
/* oklch */ color: oklch(51.9% 0.212 294.3);
Tailwind
colors: {
  custom: {
    50: '#a479e2',
    500: '#7540d3',
    950: '#000000',
  },
}
SCSS
$custom: #7540d3;
$custom-light: #a479e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7540d3",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 261.633,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51926,
    "c": 0.21192,
    "h": 294.3
  },
  "luminance": 0.12152
}

Semantic roles & 50–950 ramp

primary
#7540D3
secondary
#C0D798
accent
#E642AB
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7540D3

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

Preview Lab → · Contrast checker → · Palette generator →

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