#7F319F#7F319F

#7F319F is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.177 H 314.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7F319F
RGBrgb(127, 49, 159)
HSLhsl(283, 53%, 41%)
HSVhsv(283, 69%, 62%)
CMYKcmyk(20.1%, 69.2%, 0%, 37.6%)
CIE-LABlab(36.39, 50.88, -44.99)
CIE-LCHlch(36.39, 67.92, 318.51°)
OKLaboklab(47.39% 0.1239 -0.1267)
OKLCHoklch(47.39% 0.177 314.4)
XYZxyz(16.1077, 9.2124, 33.7238)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F319F #519F31
analogous
#48319F #7F319F #9F3188
triadic
#7F319F #9F7F31 #319F7F
tetradic
#7F319F #9F4831 #519F31 #31889F
square
#7F319F #9F4831 #519F31 #31889F
split-complementary
#7F319F #889F31 #319F48
monochromatic
#341441 #5A2370 #7F319F #A147C6 #B976D5

Accessibility & contrast

On white

7.39
#7F319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F319F
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F319F#FFFFFF#000000##FFFFFF
##7F319F1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#2C589C
Tritanopia (blue-blind)
#7C4764
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f319f;
/* rgb */ color: rgb(127, 49, 159);
/* oklch */ color: oklch(47.4% 0.177 314.4);
Tailwind
colors: {
  custom: {
    50: '#a870bc',
    500: '#7f319f',
    950: '#000000',
  },
}
SCSS
$custom: #7f319f;
$custom-light: #a870bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f319f",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 282.545,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47392,
    "c": 0.17719,
    "h": 314.4
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#7F319F
secondary
#86BD6F
accent
#DC4C76
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F319F

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

Preview Lab → · Contrast checker → · Palette generator →

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