#7E1C9D#7E1C9D

#7E1C9D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.198 H 316.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E1C9D
RGBrgb(126, 28, 157)
HSLhsl(286, 70%, 36%)
HSVhsv(286, 82%, 62%)
CMYKcmyk(19.7%, 82.2%, 0%, 38.4%)
CIE-LABlab(33.35, 58.10, -48.68)
CIE-LCHlch(33.35, 75.80, 320.04°)
OKLaboklab(45.16% 0.1427 -0.1374)
OKLCHoklch(45.16% 0.198 316.1)
XYZxyz(15.1043, 7.7011, 32.5826)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C9D #3B9D1C
analogous
#3D1C9D #7E1C9D #9D1C7C
triadic
#7E1C9D #9D7E1C #1C9D7E
tetradic
#7E1C9D #9D3D1C #3B9D1C #1C7C9D
square
#7E1C9D #9D3D1C #3B9D1C #1C7C9D
split-complementary
#7E1C9D #7C9D1C #1C9D3D
monochromatic
#2B0935 #541369 #7E1C9D #A825D1 #BE53E0

Accessibility & contrast

On white

8.27
#7E1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C9D
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C9D#FFFFFF#000000##FFFFFF
##7E1C9D1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#19519A
Tritanopia (blue-blind)
#7C3B5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1c9d;
/* rgb */ color: rgb(126, 28, 157);
/* oklch */ color: oklch(45.2% 0.198 316.1);
Tailwind
colors: {
  custom: {
    50: '#a866bb',
    500: '#7e1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c9d;
$custom-light: #a866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c9d",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 285.581,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45163,
    "c": 0.19808,
    "h": 316.1
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#7E1C9D
secondary
#6DC351
accent
#ED3B66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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