#7531AB#7531AB

#7531AB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.186 H 305.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7531AB
RGBrgb(117, 49, 171)
HSLhsl(273, 55%, 43%)
HSVhsv(273, 71%, 67%)
CMYKcmyk(31.6%, 71.3%, 0%, 32.9%)
CIE-LABlab(35.83, 51.43, -53.17)
CIE-LCHlch(35.83, 73.98, 314.05°)
OKLaboklab(46.96% 0.109 -0.151)
OKLCHoklch(46.96% 0.186 305.8)
XYZxyz(15.7835, 8.9189, 39.4102)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531AB #67AB31
analogous
#3831AB #7531AB #AB31A4
triadic
#7531AB #AB7531 #31AB75
tetradic
#7531AB #AB3831 #67AB31 #31A4AB
square
#7531AB #AB3831 #67AB31 #31A4AB
split-complementary
#7531AB #A4AB31 #31AB38
monochromatic
#34164C #54237B #7531AB #944DCC #B17DDA

Accessibility & contrast

On white

7.54
#7531AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7531AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531AB
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531AB#FFFFFF#000000##FFFFFF
##7531AB1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#6B4D6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7531ab;
/* rgb */ color: rgb(117, 49, 171);
/* oklch */ color: oklch(47.0% 0.186 305.8);
Tailwind
colors: {
  custom: {
    50: '#a16fc5',
    500: '#7531ab',
    950: '#000000',
  },
}
SCSS
$custom: #7531ab;
$custom-light: #a16fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7531ab",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 273.443,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46961,
    "c": 0.18628,
    "h": 305.8
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#7531AB
secondary
#97C275
accent
#DF498B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7531AB

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

Preview Lab → · Contrast checker → · Palette generator →

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