#7F3499#7F3499

#7F3499 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.3% C 0.167 H 316.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7F3499
RGBrgb(127, 52, 153)
HSLhsl(285, 49%, 40%)
HSVhsv(285, 66%, 60%)
CMYKcmyk(17%, 66%, 0%, 40%)
CIE-LABlab(36.50, 48.23, -41.19)
CIE-LCHlch(36.50, 63.43, 319.50°)
OKLaboklab(47.35% 0.1207 -0.1156)
OKLCHoklch(47.35% 0.167 316.3)
XYZxyz(15.7293, 9.2685, 31.0913)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3499 #4E9934
analogous
#4C3499 #7F3499 #993481
triadic
#7F3499 #997F34 #34997F
tetradic
#7F3499 #994C34 #4E9934 #348199
square
#7F3499 #994C34 #4E9934 #348199
split-complementary
#7F3499 #819934 #34994C
monochromatic
#33153E #59246B #7F3499 #A249C1 #BA77D1

Accessibility & contrast

On white

7.36
#7F3499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F3499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3499
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3499#FFFFFF#000000##FFFFFF
##7F34991.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B519C
Deuteranopia (green-blind)
#345897
Tritanopia (blue-blind)
#7E4762
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f3499;
/* rgb */ color: rgb(127, 52, 153);
/* oklch */ color: oklch(47.3% 0.167 316.3);
Tailwind
colors: {
  custom: {
    50: '#a771b7',
    500: '#7f3499',
    950: '#000000',
  },
}
SCSS
$custom: #7f3499;
$custom-light: #a771b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3499",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 153
  },
  "hsl": {
    "h": 284.554,
    "s": 49.268,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47345,
    "c": 0.16712,
    "h": 316.3
  },
  "luminance": 0.09268
}

Semantic roles & 50–950 ramp

primary
#7F3499
secondary
#83B970
accent
#D94F72
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3499

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

Preview Lab → · Contrast checker → · Palette generator →

#7F3499 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva