#7531AC#7531AC

#7531AC is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.187 H 305.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7531AC
RGBrgb(117, 49, 172)
HSLhsl(273, 56%, 43%)
HSVhsv(273, 72%, 67%)
CMYKcmyk(32%, 71.5%, 0%, 32.5%)
CIE-LABlab(35.90, 51.67, -53.65)
CIE-LCHlch(35.90, 74.48, 313.92°)
OKLaboklab(47.04% 0.1089 -0.1524)
OKLCHoklch(47.04% 0.187 305.5)
XYZxyz(15.8792, 8.9572, 39.9141)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531AC #68AC31
analogous
#3831AC #7531AC #AC31A5
triadic
#7531AC #AC7531 #31AC75
tetradic
#7531AC #AC3831 #68AC31 #31A5AC
square
#7531AC #AC3831 #68AC31 #31A5AC
split-complementary
#7531AC #A5AC31 #31AC38
monochromatic
#34164D #55237C #7531AC #944ECC #B17DDA

Accessibility & contrast

On white

7.52
#7531AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7531AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531AC
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531AC#FFFFFF#000000##FFFFFF
##7531AC1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#6B4E6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7531ac;
/* rgb */ color: rgb(117, 49, 172);
/* oklch */ color: oklch(47.0% 0.187 305.5);
Tailwind
colors: {
  custom: {
    50: '#a26fc6',
    500: '#7531ac',
    950: '#000000',
  },
}
SCSS
$custom: #7531ac;
$custom-light: #a26fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7531ac",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 273.171,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.18732,
    "h": 305.5
  },
  "luminance": 0.08957
}

Semantic roles & 50–950 ramp

primary
#7531AC
secondary
#98C376
accent
#DF498C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7531AC

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

Preview Lab → · Contrast checker → · Palette generator →

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