#7E318F#7E318F

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

Color values

HEX#7E318F
RGBrgb(126, 49, 143)
HSLhsl(289, 49%, 38%)
HSVhsv(289, 66%, 56%)
CMYKcmyk(11.9%, 65.7%, 0%, 43.9%)
CIE-LABlab(35.23, 47.31, -37.12)
CIE-LCHlch(35.23, 60.13, 321.88°)
OKLaboklab(46.21% 0.1233 -0.1037)
OKLCHoklch(46.21% 0.161 319.9)
XYZxyz(14.6598, 8.6161, 26.8722)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E318F #428F31
analogous
#4F318F #7E318F #8F3171
triadic
#7E318F #8F7E31 #318F7E
tetradic
#7E318F #8F4F31 #428F31 #31718F
square
#7E318F #8F4F31 #428F31 #31718F
split-complementary
#7E318F #718F31 #318F4F
monochromatic
#2E1234 #562161 #7E318F #A641BD #BC6DCD

Accessibility & contrast

On white

7.71
#7E318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E318F
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E318F#FFFFFF#000000##FFFFFF
##7E318F1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164E92
Deuteranopia (green-blind)
#39568D
Tritanopia (blue-blind)
#7F415B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e318f;
/* rgb */ color: rgb(126, 49, 143);
/* oklch */ color: oklch(46.2% 0.161 319.9);
Tailwind
colors: {
  custom: {
    50: '#a66fb0',
    500: '#7e318f',
    950: '#000000',
  },
}
SCSS
$custom: #7e318f;
$custom-light: #a66fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e318f",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 289.149,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46207,
    "c": 0.16105,
    "h": 319.9
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#7E318F
secondary
#75B567
accent
#D94F68
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E318F

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

Preview Lab → · Contrast checker → · Palette generator →

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