#7540C8#7540C8

#7540C8 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.200 H 296.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7540C8
RGBrgb(117, 64, 200)
HSLhsl(263, 55%, 52%)
HSVhsv(263, 68%, 78%)
CMYKcmyk(41.5%, 68%, 0%, 21.6%)
CIE-LABlab(40.60, 51.38, -62.50)
CIE-LCHlch(40.60, 80.91, 309.42°)
OKLaboklab(51.05% 0.089 -0.1785)
OKLCHoklch(51.05% 0.2 296.5)
XYZxyz(19.5921, 11.6184, 55.8427)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540C8 #93C840
analogous
#404FC8 #7540C8 #B940C8
triadic
#7540C8 #C87540 #40C875
tetradic
#7540C8 #C8404F #93C840 #40C8B9
square
#7540C8 #C8404F #93C840 #40C8B9
split-complementary
#7540C8 #C8B940 #4FC840
monochromatic
#3E206E #592D9D #7540C8 #9770D6 #BA9FE3

Accessibility & contrast

On white

6.32
#7540C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7540C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540C8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540C8#FFFFFF#000000##FFFFFF
##7540C81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#60617F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7540c8;
/* rgb */ color: rgb(117, 64, 200);
/* oklch */ color: oklch(51.1% 0.200 296.5);
Tailwind
colors: {
  custom: {
    50: '#a379da',
    500: '#7540c8',
    950: '#000000',
  },
}
SCSS
$custom: #7540c8;
$custom-light: #a379da;
$custom-dark: #000000;
JSON
{
  "hex": "#7540c8",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 263.382,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51052,
    "c": 0.1995,
    "h": 296.5
  },
  "luminance": 0.11619
}

Semantic roles & 50–950 ramp

primary
#7540C8
secondary
#B8D094
accent
#DF49A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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