#7F319D#7F319D

#7F319D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.175 H 315.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F319D
RGBrgb(127, 49, 157)
HSLhsl(283, 52%, 40%)
HSVhsv(283, 69%, 62%)
CMYKcmyk(19.1%, 68.8%, 0%, 38.4%)
CIE-LABlab(36.26, 50.45, -43.99)
CIE-LCHlch(36.26, 66.94, 318.91°)
OKLaboklab(47.26% 0.1241 -0.1237)
OKLCHoklch(47.26% 0.175 315.1)
XYZxyz(15.9355, 9.1435, 32.8172)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F319D #4F9D31
analogous
#49319D #7F319D #9D3185
triadic
#7F319D #9D7F31 #319D7F
tetradic
#7F319D #9D4931 #4F9D31 #31859D
square
#7F319D #9D4931 #4F9D31 #31859D
split-complementary
#7F319D #859D31 #319D49
monochromatic
#341440 #59226E #7F319D #A246C5 #B975D4

Accessibility & contrast

On white

7.42
#7F319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F319D
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F319D#FFFFFF#000000##FFFFFF
##7F319D1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#2E579B
Tritanopia (blue-blind)
#7D4663
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f319d;
/* rgb */ color: rgb(127, 49, 157);
/* oklch */ color: oklch(47.3% 0.175 315.1);
Tailwind
colors: {
  custom: {
    50: '#a76fba',
    500: '#7f319d',
    950: '#000000',
  },
}
SCSS
$custom: #7f319d;
$custom-light: #a76fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f319d",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 283.333,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47256,
    "c": 0.17521,
    "h": 315.1
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

primary
#7F319D
secondary
#84BC6E
accent
#DC4C74
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F319D

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

Preview Lab → · Contrast checker → · Palette generator →

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