#7E317E#7E317E

#7E317E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.145 H 327.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7E317E
RGBrgb(126, 49, 126)
HSLhsl(300, 44%, 34%)
HSVhsv(300, 61%, 49%)
CMYKcmyk(0%, 61.1%, 0%, 50.6%)
CIE-LABlab(34.27, 43.98, -28.13)
CIE-LCHlch(34.27, 52.21, 327.40°)
OKLaboklab(45.2% 0.1225 -0.0776)
OKLCHoklch(45.2% 0.145 327.6)
XYZxyz(13.4682, 8.1395, 20.5963)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E317E #317E31
analogous
#58317E #7E317E #7E3158
triadic
#7E317E #7E7E31 #317E7E
tetradic
#7E317E #7E5831 #317E31 #31587E
square
#7E317E #7E5831 #317E31 #31587E
split-complementary
#7E317E #587E31 #317E58
monochromatic
#260F26 #522052 #7E317E #AA42AA #C366C3

Accessibility & contrast

On white

7.99
#7E317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E317E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E317E#FFFFFF#000000##FFFFFF
##7E317E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#823B53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e317e;
/* rgb */ color: rgb(126, 49, 126);
/* oklch */ color: oklch(45.2% 0.145 327.6);
Tailwind
colors: {
  custom: {
    50: '#a66ea3',
    500: '#7e317e',
    950: '#000000',
  },
}
SCSS
$custom: #7e317e;
$custom-light: #a66ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e317e",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45197,
    "c": 0.14497,
    "h": 327.6
  },
  "luminance": 0.08139
}

Semantic roles & 50–950 ramp

primary
#7E317E
secondary
#60AB60
accent
#D45454
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E317E

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

Preview Lab → · Contrast checker → · Palette generator →

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