#7F318D#7F318D

#7F318D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.160 H 321.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F318D
RGBrgb(127, 49, 141)
HSLhsl(291, 48%, 37%)
HSVhsv(291, 65%, 55%)
CMYKcmyk(9.9%, 65.2%, 0%, 44.7%)
CIE-LABlab(35.27, 47.15, -35.83)
CIE-LCHlch(35.27, 59.22, 322.77°)
OKLaboklab(46.22% 0.1245 -0.0999)
OKLCHoklch(46.22% 0.16 321.3)
XYZxyz(14.6579, 8.6325, 26.0883)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F318D #3F8D31
analogous
#51318D #7F318D #8D316D
triadic
#7F318D #8D7F31 #318D7F
tetradic
#7F318D #8D5131 #3F8D31 #316D8D
square
#7F318D #8D5131 #3F8D31 #316D8D
split-complementary
#7F318D #6D8D31 #318D51
monochromatic
#2D1132 #562160 #7F318D #A841BA #BD6CCC

Accessibility & contrast

On white

7.70
#7F318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F318D
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F318D#FFFFFF#000000##FFFFFF
##7F318D1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D90
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#80405A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f318d;
/* rgb */ color: rgb(127, 49, 141);
/* oklch */ color: oklch(46.2% 0.160 321.3);
Tailwind
colors: {
  custom: {
    50: '#a76faf',
    500: '#7f318d',
    950: '#000000',
  },
}
SCSS
$custom: #7f318d;
$custom-light: #a76faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f318d",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 290.87,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46223,
    "c": 0.15961,
    "h": 321.3
  },
  "luminance": 0.08632
}

Semantic roles & 50–950 ramp

primary
#7F318D
secondary
#72B466
accent
#D85065
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F318D

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

Preview Lab → · Contrast checker → · Palette generator →

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