#752A9D#752A9D

#752A9D is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.181 H 311.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#752A9D
RGBrgb(117, 42, 157)
HSLhsl(279, 58%, 39%)
HSVhsv(279, 73%, 62%)
CMYKcmyk(25.5%, 73.2%, 0%, 38.4%)
CIE-LABlab(33.72, 51.32, -48.16)
CIE-LCHlch(33.72, 70.38, 316.82°)
OKLaboklab(45.14% 0.1184 -0.1363)
OKLCHoklch(45.14% 0.181 311)
XYZxyz(14.2487, 7.8725, 32.6607)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#752A9D #529D2A
analogous
#3B2A9D #752A9D #9D2A8C
triadic
#752A9D #9D752A #2A9D75
tetradic
#752A9D #9D3B2A #529D2A #2A8C9D
square
#752A9D #9D3B2A #529D2A #2A8C9D
split-complementary
#752A9D #8C9D2A #2A9D3B
monochromatic
#2D103C #511D6D #752A9D #983ACA #B16AD7

Accessibility & contrast

On white

8.16
#752A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#752A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #752A9D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##752A9D#FFFFFF#000000##FFFFFF
##752A9D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#17519B
Tritanopia (blue-blind)
#704461
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #752a9d;
/* rgb */ color: rgb(117, 42, 157);
/* oklch */ color: oklch(45.1% 0.181 311.0);
Tailwind
colors: {
  custom: {
    50: '#a16bbb',
    500: '#752a9d',
    950: '#000000',
  },
}
SCSS
$custom: #752a9d;
$custom-light: #a16bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#752a9d",
  "rgb": {
    "r": 117,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 279.13,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45138,
    "c": 0.18052,
    "h": 311
  },
  "luminance": 0.07872
}

Semantic roles & 50–950 ramp

primary
#752A9D
secondary
#84BE65
accent
#E1477C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #752A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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