#7540FF#7540FF

#7540FF is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.7% C 0.260 H 287.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7540FF
RGBrgb(117, 64, 255)
HSLhsl(257, 100%, 63%)
HSVhsv(257, 75%, 100%)
CMYKcmyk(54.1%, 74.9%, 0%, 0%)
CIE-LABlab(45.18, 65.86, -86.29)
CIE-LCHlch(45.18, 108.56, 307.35°)
OKLaboklab(55.69% 0.0774 -0.2483)
OKLCHoklch(55.69% 0.26 287.3)
XYZxyz(27.2141, 14.6673, 95.9854)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540FF #CAFF40
analogous
#406BFF #7540FF #D440FF
triadic
#7540FF #FF7540 #40FF75
tetradic
#7540FF #FF406B #CAFF40 #40FFD4
square
#7540FF #FF406B #CAFF40 #40FFD4
split-complementary
#7540FF #FFD440 #6BFF40
monochromatic
#3700C5 #4903FF #7540FF #A17DFF #CDBAFF

Accessibility & contrast

On white

5.34
#7540FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7540FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540FF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540FF#FFFFFF#000000##FFFFFF
##7540FF1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#0066FB
Tritanopia (blue-blind)
#39769E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7540ff;
/* rgb */ color: rgb(117, 64, 255);
/* oklch */ color: oklch(55.7% 0.260 287.3);
Tailwind
colors: {
  custom: {
    50: '#aa7bff',
    500: '#7540ff',
    950: '#000000',
  },
}
SCSS
$custom: #7540ff;
$custom-light: #aa7bff;
$custom-dark: #000000;
JSON
{
  "hex": "#7540ff",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 256.649,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55692,
    "c": 0.26011,
    "h": 287.3
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#7540FF
secondary
#DDF0AB
accent
#E600A6
background
#FBF7FF
surface
#F6EEFF
border
#D0C9D7
text
#110A18
muted
#807C86

Preview Lab

Preview with #7540FF

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

Preview Lab → · Contrast checker → · Palette generator →

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