#7531BA#7531BA

#7531BA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.202 H 301.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7531BA
RGBrgb(117, 49, 186)
HSLhsl(270, 58%, 46%)
HSVhsv(270, 74%, 73%)
CMYKcmyk(37.1%, 73.7%, 0%, 27.1%)
CIE-LABlab(36.97, 55.00, -60.21)
CIE-LCHlch(36.97, 81.55, 312.41°)
OKLaboklab(48.13% 0.1063 -0.1717)
OKLCHoklch(48.13% 0.202 301.7)
XYZxyz(17.2952, 9.5236, 47.3719)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531BA #76BA31
analogous
#3131BA #7531BA #B931BA
triadic
#7531BA #BA7531 #31BA75
tetradic
#7531BA #BA3131 #76BA31 #31BAB9
square
#7531BA #BA3131 #76BA31 #31BAB9
split-complementary
#7531BA #BAB931 #31BA31
monochromatic
#381759 #57248A #7531BA #9456D2 #B286DF

Accessibility & contrast

On white

7.23
#7531BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7531BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531BA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531BA#FFFFFF#000000##FFFFFF
##7531BA1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#665373
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7531ba;
/* rgb */ color: rgb(117, 49, 186);
/* oklch */ color: oklch(48.1% 0.202 301.7);
Tailwind
colors: {
  custom: {
    50: '#a370d0',
    500: '#7531ba',
    950: '#000000',
  },
}
SCSS
$custom: #7531ba;
$custom-light: #a370d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7531ba",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 269.781,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48133,
    "c": 0.20196,
    "h": 301.7
  },
  "luminance": 0.09524
}

Semantic roles & 50–950 ramp

primary
#7531BA
secondary
#A4C97E
accent
#E24694
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7531BA

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

Preview Lab → · Contrast checker → · Palette generator →

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