#752F9D#752F9D

#752F9D is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.174 H 310.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#752F9D
RGBrgb(117, 47, 157)
HSLhsl(278, 54%, 40%)
HSVhsv(278, 70%, 62%)
CMYKcmyk(25.5%, 70.1%, 0%, 38.4%)
CIE-LABlab(34.50, 49.12, -46.90)
CIE-LCHlch(34.50, 67.91, 316.32°)
OKLaboklab(45.7% 0.1131 -0.1326)
OKLCHoklch(45.7% 0.174 310.5)
XYZxyz(14.4373, 8.2496, 32.7235)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#752F9D #579D2F
analogous
#3E2F9D #752F9D #9D2F8E
triadic
#752F9D #9D752F #2F9D75
tetradic
#752F9D #9D3E2F #579D2F #2F8E9D
square
#752F9D #9D3E2F #579D2F #2F8E9D
split-complementary
#752F9D #8E9D2F #2F9D3E
monochromatic
#2F133F #52216E #752F9D #9743C7 #B172D5

Accessibility & contrast

On white

7.93
#752F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#752F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #752F9D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##752F9D#FFFFFF#000000##FFFFFF
##752F9D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#1E529B
Tritanopia (blue-blind)
#704762
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #752f9d;
/* rgb */ color: rgb(117, 47, 157);
/* oklch */ color: oklch(45.7% 0.174 310.5);
Tailwind
colors: {
  custom: {
    50: '#a16dbb',
    500: '#752f9d',
    950: '#000000',
  },
}
SCSS
$custom: #752f9d;
$custom-light: #a16dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#752f9d",
  "rgb": {
    "r": 117,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 278.182,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.45695,
    "c": 0.17426,
    "h": 310.5
  },
  "luminance": 0.08249
}

Semantic roles & 50–950 ramp

primary
#752F9D
secondary
#89BC6B
accent
#DD4B80
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #752F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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