#7531B3#7531B3

#7531B3 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.195 H 303.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7531B3
RGBrgb(117, 49, 179)
HSLhsl(271, 57%, 45%)
HSVhsv(271, 73%, 70%)
CMYKcmyk(34.6%, 72.6%, 0%, 29.8%)
CIE-LABlab(36.43, 53.32, -56.96)
CIE-LCHlch(36.43, 78.03, 313.11°)
OKLaboklab(47.58% 0.1077 -0.1622)
OKLCHoklch(47.58% 0.195 303.6)
XYZxyz(16.5692, 9.2332, 43.5484)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7531B3 #6FB331
analogous
#3431B3 #7531B3 #B331B0
triadic
#7531B3 #B37531 #31B375
tetradic
#7531B3 #B33431 #6FB331 #31B0B3
square
#7531B3 #B33431 #6FB331 #31B0B3
split-complementary
#7531B3 #B0B331 #31B334
monochromatic
#361753 #562483 #7531B3 #9452D0 #B182DD

Accessibility & contrast

On white

7.38
#7531B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7531B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7531B3
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7531B3#FFFFFF#000000##FFFFFF
##7531B31.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#69506F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7531b3;
/* rgb */ color: rgb(117, 49, 179);
/* oklch */ color: oklch(47.6% 0.195 303.6);
Tailwind
colors: {
  custom: {
    50: '#a26fcb',
    500: '#7531b3',
    950: '#000000',
  },
}
SCSS
$custom: #7531b3;
$custom-light: #a26fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7531b3",
  "rgb": {
    "r": 117,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 271.385,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47578,
    "c": 0.19465,
    "h": 303.6
  },
  "luminance": 0.09233
}

Semantic roles & 50–950 ramp

primary
#7531B3
secondary
#9EC67A
accent
#E04890
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7531B3

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

Preview Lab → · Contrast checker → · Palette generator →

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