#7531A5#7531A5

#7531A5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.180 H 307.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7531A5
RGBrgb(117, 49, 165)
HSLhsl(275, 54%, 42%)
HSVhsv(275, 70%, 65%)
CMYKcmyk(29.1%, 70.3%, 0%, 35.3%)
CIE-LABlab(35.39, 50.03, -50.29)
CIE-LCHlch(35.39, 70.93, 314.85°)
OKLaboklab(46.51% 0.1099 -0.1425)
OKLCHoklch(46.51% 0.18 307.6)
XYZxyz(15.2245, 8.6954, 36.4664)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531A5 #61A531
analogous
#3B31A5 #7531A5 #A5319B
triadic
#7531A5 #A57531 #31A575
tetradic
#7531A5 #A53B31 #61A531 #319BA5
square
#7531A5 #A53B31 #61A531 #319BA5
split-complementary
#7531A5 #9BA531 #31A53B
monochromatic
#321547 #542376 #7531A5 #954AC9 #B079D7

Accessibility & contrast

On white

7.67
#7531A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7531A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531A5
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531A5#FFFFFF#000000##FFFFFF
##7531A51.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#6D4B67
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7531a5;
/* rgb */ color: rgb(117, 49, 165);
/* oklch */ color: oklch(46.5% 0.180 307.6);
Tailwind
colors: {
  custom: {
    50: '#a16fc0',
    500: '#7531a5',
    950: '#000000',
  },
}
SCSS
$custom: #7531a5;
$custom-light: #a16fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7531a5",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 275.172,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46512,
    "c": 0.18,
    "h": 307.6
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#7531A5
secondary
#92C072
accent
#DE4A87
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7531A5

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

Preview Lab → · Contrast checker → · Palette generator →

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