#7531B8#7531B8

#7531B8 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.200 H 302.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7531B8
RGBrgb(117, 49, 184)
HSLhsl(270, 58%, 46%)
HSVhsv(270, 73%, 72%)
CMYKcmyk(36.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(36.82, 54.52, -59.29)
CIE-LCHlch(36.82, 80.55, 312.60°)
OKLaboklab(47.97% 0.1067 -0.169)
OKLCHoklch(47.97% 0.2 302.3)
XYZxyz(17.0841, 9.4392, 46.2600)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531B8 #74B831
analogous
#3131B8 #7531B8 #B831B7
triadic
#7531B8 #B87531 #31B875
tetradic
#7531B8 #B83131 #74B831 #31B7B8
square
#7531B8 #B83131 #74B831 #31B7B8
split-complementary
#7531B8 #B7B831 #31B831
monochromatic
#381757 #562488 #7531B8 #9455D2 #B285DE

Accessibility & contrast

On white

7.27
#7531B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7531B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531B8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531B8#FFFFFF#000000##FFFFFF
##7531B81.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#675272
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7531b8;
/* rgb */ color: rgb(117, 49, 184);
/* oklch */ color: oklch(48.0% 0.200 302.3);
Tailwind
colors: {
  custom: {
    50: '#a370ce',
    500: '#7531b8',
    950: '#000000',
  },
}
SCSS
$custom: #7531b8;
$custom-light: #a370ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7531b8",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 270.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47973,
    "c": 0.19987,
    "h": 302.3
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#7531B8
secondary
#A2C87D
accent
#E14793
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7531B8

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

Preview Lab → · Contrast checker → · Palette generator →

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