#7540B2#7540B2

#7540B2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.4% C 0.174 H 301.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7540B2
RGBrgb(117, 64, 178)
HSLhsl(268, 47%, 47%)
HSVhsv(268, 64%, 70%)
CMYKcmyk(34.3%, 64%, 0%, 30.2%)
CIE-LABlab(39.01, 45.73, -52.19)
CIE-LCHlch(39.01, 69.40, 311.23°)
OKLaboklab(49.4% 0.0916 -0.1482)
OKLCHoklch(49.4% 0.174 301.7)
XYZxyz(17.2035, 10.6630, 43.2627)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7540B2 #7DB240
analogous
#4044B2 #7540B2 #AE40B2
triadic
#7540B2 #B27540 #40B275
tetradic
#7540B2 #B24044 #7DB240 #40B2AE
square
#7540B2 #B24044 #7DB240 #40B2AE
split-complementary
#7540B2 #B2AE40 #44B240
monochromatic
#3A2058 #573085 #7540B2 #9467C8 #B494D8

Accessibility & contrast

On white

6.70
#7540B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7540B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7540B2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7540B2#FFFFFF#000000##FFFFFF
##7540B21.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#165BB0
Tritanopia (blue-blind)
#685973
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7540b2;
/* rgb */ color: rgb(117, 64, 178);
/* oklch */ color: oklch(49.4% 0.174 301.7);
Tailwind
colors: {
  custom: {
    50: '#a178ca',
    500: '#7540b2',
    950: '#000000',
  },
}
SCSS
$custom: #7540b2;
$custom-light: #a178ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7540b2",
  "rgb": {
    "r": 117,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 267.895,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.494,
    "c": 0.17423,
    "h": 301.7
  },
  "luminance": 0.10663
}

Semantic roles & 50–950 ramp

primary
#7540B2
secondary
#A9C48A
accent
#D75199
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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