#7531B5#7531B5

#7531B5 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.197 H 303.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7531B5
RGBrgb(117, 49, 181)
HSLhsl(271, 57%, 45%)
HSVhsv(271, 73%, 71%)
CMYKcmyk(35.4%, 72.9%, 0%, 29%)
CIE-LABlab(36.58, 53.80, -57.90)
CIE-LCHlch(36.58, 79.03, 312.90°)
OKLaboklab(47.74% 0.1073 -0.1649)
OKLCHoklch(47.74% 0.197 303)
XYZxyz(16.7730, 9.3147, 44.6214)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531B5 #71B531
analogous
#3331B5 #7531B5 #B531B3
triadic
#7531B5 #B57531 #31B575
tetradic
#7531B5 #B53331 #71B531 #31B3B5
square
#7531B5 #B53331 #71B531 #31B3B5
split-complementary
#7531B5 #B3B531 #31B533
monochromatic
#371755 #562485 #7531B5 #9453D0 #B283DD

Accessibility & contrast

On white

7.33
#7531B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7531B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531B5
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531B5#FFFFFF#000000##FFFFFF
##7531B51.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#685170
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7531b5;
/* rgb */ color: rgb(117, 49, 181);
/* oklch */ color: oklch(47.7% 0.197 303.0);
Tailwind
colors: {
  custom: {
    50: '#a26fcc',
    500: '#7531b5',
    950: '#000000',
  },
}
SCSS
$custom: #7531b5;
$custom-light: #a26fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7531b5",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 270.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47735,
    "c": 0.19674,
    "h": 303
  },
  "luminance": 0.09315
}

Semantic roles & 50–950 ramp

primary
#7531B5
secondary
#A0C77B
accent
#E14792
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7531B5

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

Preview Lab → · Contrast checker → · Palette generator →

#7531B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva