#752D9F#752D9F

#752D9F is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.179 H 310.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#752D9F
RGBrgb(117, 45, 159)
HSLhsl(278, 56%, 40%)
HSVhsv(278, 72%, 62%)
CMYKcmyk(26.4%, 71.7%, 0%, 37.6%)
CIE-LABlab(34.32, 50.47, -48.40)
CIE-LCHlch(34.32, 69.93, 316.20°)
OKLaboklab(45.61% 0.115 -0.137)
OKLCHoklch(45.61% 0.179 310)
XYZxyz(14.5313, 8.1622, 33.6041)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#752D9F #579F2D
analogous
#3C2D9F #752D9F #9F2D90
triadic
#752D9F #9F752D #2D9F75
tetradic
#752D9F #9F3C2D #579F2D #2D909F
square
#752D9F #9F3C2D #579F2D #2D909F
split-complementary
#752D9F #909F2D #2D9F3C
monochromatic
#2F1240 #52206F #752D9F #9740C9 #B170D6

Accessibility & contrast

On white

7.98
#752D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#752D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #752D9F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##752D9F#FFFFFF#000000##FFFFFF
##752D9F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#18529D
Tritanopia (blue-blind)
#6F4663
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #752d9f;
/* rgb */ color: rgb(117, 45, 159);
/* oklch */ color: oklch(45.6% 0.179 310.0);
Tailwind
colors: {
  custom: {
    50: '#a16cbc',
    500: '#752d9f',
    950: '#000000',
  },
}
SCSS
$custom: #752d9f;
$custom-light: #a16cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#752d9f",
  "rgb": {
    "r": 117,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 277.895,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.17885,
    "h": 310
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#752D9F
secondary
#89BE6A
accent
#DF4980
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #752D9F

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

Preview Lab → · Contrast checker → · Palette generator →

#752D9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva