#7E1E7B#7E1E7B

#7E1E7B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.168 H 329.4°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7E1E7B
RGBrgb(126, 30, 123)
HSLhsl(302, 62%, 31%)
HSVhsv(302, 76%, 49%)
CMYKcmyk(0%, 76.2%, 2.4%, 50.6%)
CIE-LABlab(31.34, 51.20, -30.89)
CIE-LCHlch(31.34, 59.80, 328.90°)
OKLaboklab(43.02% 0.1443 -0.0854)
OKLCHoklch(43.02% 0.168 329.4)
XYZxyz(12.6435, 6.7952, 19.3807)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E7B #1E7E21
analogous
#511E7E #7E1E7B #7E1E4B
triadic
#7E1E7B #7B7E1E #1E7B7E
tetradic
#7E1E7B #7E511E #1E7E21 #1E4B7E
square
#7E1E7B #7E511E #1E7E21 #1E4B7E
split-complementary
#7E1E7B #4B7E1E #1E7E51
monochromatic
#1B061A #4D124B #7E1E7B #AF2AAB #D244CE

Accessibility & contrast

On white

8.90
#7E1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E7B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E7B#FFFFFF#000000##FFFFFF
##7E1E7B1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427E
Deuteranopia (green-blind)
#3A4E79
Tritanopia (blue-blind)
#832C4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1e7b;
/* rgb */ color: rgb(126, 30, 123);
/* oklch */ color: oklch(43.0% 0.168 329.4);
Tailwind
colors: {
  custom: {
    50: '#a765a1',
    500: '#7e1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e7b;
$custom-light: #a765a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e7b",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 301.875,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43022,
    "c": 0.1677,
    "h": 329.4
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

primary
#7E1E7B
secondary
#47B14A
accent
#E54843
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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