#7E317D#7E317D

#7E317D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.144 H 328.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E317D
RGBrgb(126, 49, 125)
HSLhsl(301, 44%, 34%)
HSVhsv(301, 61%, 49%)
CMYKcmyk(0%, 61.1%, 0.8%, 50.6%)
CIE-LABlab(34.22, 43.80, -27.59)
CIE-LCHlch(34.22, 51.76, 327.79°)
OKLaboklab(45.14% 0.1224 -0.076)
OKLCHoklch(45.14% 0.144 328.1)
XYZxyz(13.4040, 8.1138, 20.2582)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E317D #317E32
analogous
#59317E #7E317D #7E3157
triadic
#7E317D #7D7E31 #317D7E
tetradic
#7E317D #7E5931 #317E32 #31577E
square
#7E317D #7E5931 #317E32 #31577E
split-complementary
#7E317D #577E31 #317E59
monochromatic
#260F26 #522051 #7E317D #AA42A9 #C366C2

Accessibility & contrast

On white

8.01
#7E317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E317D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E317D#FFFFFF#000000##FFFFFF
##7E317D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#823A52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e317d;
/* rgb */ color: rgb(126, 49, 125);
/* oklch */ color: oklch(45.1% 0.144 328.1);
Tailwind
colors: {
  custom: {
    50: '#a66ea3',
    500: '#7e317d',
    950: '#000000',
  },
}
SCSS
$custom: #7e317d;
$custom-light: #a66ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e317d",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 300.779,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45141,
    "c": 0.14405,
    "h": 328.1
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#7E317D
secondary
#60AB61
accent
#D45654
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E317D

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

Preview Lab → · Contrast checker → · Palette generator →

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