#7540D8#7540D8

#7540D8 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.218 H 293.4°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7540D8
RGBrgb(117, 64, 216)
HSLhsl(261, 66%, 55%)
HSVhsv(261, 70%, 85%)
CMYKcmyk(45.8%, 70.4%, 0%, 15.3%)
CIE-LABlab(41.85, 55.57, -69.69)
CIE-LCHlch(41.85, 89.13, 308.57°)
OKLaboklab(52.33% 0.0863 -0.1997)
OKLCHoklch(52.33% 0.218 293.4)
XYZxyz(21.5608, 12.4059, 66.2110)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540D8 #A3D840
analogous
#4057D8 #7540D8 #C140D8
triadic
#7540D8 #D87540 #40D875
tetradic
#7540D8 #D84057 #A3D840 #40D8C1
square
#7540D8 #D84057 #A3D840 #40D8C1
split-complementary
#7540D8 #D8C140 #57D840
monochromatic
#3F1B83 #5825B6 #7540D8 #9A73E2 #BEA6ED

Accessibility & contrast

On white

6.03
#7540D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7540D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540D8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540D8#FFFFFF#000000##FFFFFF
##7540D81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#586788
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7540d8;
/* rgb */ color: rgb(117, 64, 216);
/* oklch */ color: oklch(52.3% 0.218 293.4);
Tailwind
colors: {
  custom: {
    50: '#a579e5',
    500: '#7540d8',
    950: '#000000',
  },
}
SCSS
$custom: #7540d8;
$custom-light: #a579e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7540d8",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 260.921,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.21752,
    "h": 293.4
  },
  "luminance": 0.12407
}

Semantic roles & 50–950 ramp

primary
#7540D8
secondary
#C4DA9A
accent
#E93FAE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7540D8

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

Preview Lab → · Contrast checker → · Palette generator →

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