#752F9F#752F9F

#752F9F is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.176 H 309.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#752F9F
RGBrgb(117, 47, 159)
HSLhsl(278, 54%, 40%)
HSVhsv(278, 70%, 62%)
CMYKcmyk(26.4%, 70.4%, 0%, 37.6%)
CIE-LABlab(34.64, 49.57, -47.89)
CIE-LCHlch(34.64, 68.92, 315.99°)
OKLaboklab(45.84% 0.1128 -0.1355)
OKLCHoklch(45.84% 0.176 309.8)
XYZxyz(14.6094, 8.3184, 33.6302)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#752F9F #599F2F
analogous
#3D2F9F #752F9F #9F2F91
triadic
#752F9F #9F752F #2F9F75
tetradic
#752F9F #9F3D2F #599F2F #2F919F
square
#752F9F #9F3D2F #599F2F #2F919F
split-complementary
#752F9F #919F2F #2F9F3D
monochromatic
#2F1341 #522170 #752F9F #9644C8 #B173D6

Accessibility & contrast

On white

7.88
#752F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#752F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #752F9F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##752F9F#FFFFFF#000000##FFFFFF
##752F9F1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#1B529D
Tritanopia (blue-blind)
#6F4763
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #752f9f;
/* rgb */ color: rgb(117, 47, 159);
/* oklch */ color: oklch(45.8% 0.176 309.8);
Tailwind
colors: {
  custom: {
    50: '#a16dbc',
    500: '#752f9f',
    950: '#000000',
  },
}
SCSS
$custom: #752f9f;
$custom-light: #a16dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#752f9f",
  "rgb": {
    "r": 117,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 277.5,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45839,
    "c": 0.17632,
    "h": 309.8
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#752F9F
secondary
#8BBD6D
accent
#DE4A81
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #752F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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