#7E1DA7#7E1DA7

#7E1DA7 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.206 H 312.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7E1DA7
RGBrgb(126, 29, 167)
HSLhsl(282, 70%, 38%)
HSVhsv(282, 83%, 65%)
CMYKcmyk(24.6%, 82.6%, 0%, 34.5%)
CIE-LABlab(34.20, 59.80, -53.35)
CIE-LCHlch(34.20, 80.14, 318.26°)
OKLaboklab(45.99% 0.1398 -0.1511)
OKLCHoklch(45.99% 0.206 312.8)
XYZxyz(16.0173, 8.1049, 37.2724)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DA7 #46A71D
analogous
#391DA7 #7E1DA7 #A71D8B
triadic
#7E1DA7 #A77E1D #1DA77E
tetradic
#7E1DA7 #A7391D #46A71D #1D8BA7
square
#7E1DA7 #A7391D #46A71D #1D8BA7
split-complementary
#7E1DA7 #8BA71D #1DA739
monochromatic
#2F0B3F #571473 #7E1DA7 #A528DA #BB5CE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1DA7#FFFFFF#000000##FFFFFF
##7E1DA71.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)
#004CAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#794164
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1da7;
/* rgb */ color: rgb(126, 29, 167);
/* oklch */ color: oklch(46.0% 0.206 312.8);
Tailwind
colors: {
  custom: {
    50: '#a867c2',
    500: '#7e1da7',
    950: '#000000',
  },
}
SCSS
$custom: #7e1da7;
$custom-light: #a867c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1da7",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 282.174,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45991,
    "c": 0.20587,
    "h": 312.8
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#7E1DA7
secondary
#7AC759
accent
#ED3B70
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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