#7E1A7B#7E1A7B

#7E1A7B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.172 H 329.4°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7E1A7B
RGBrgb(126, 26, 123)
HSLhsl(302, 66%, 30%)
HSVhsv(302, 79%, 49%)
CMYKcmyk(0%, 79.4%, 2.4%, 50.6%)
CIE-LABlab(30.89, 52.48, -31.60)
CIE-LCHlch(30.89, 61.26, 328.95°)
OKLaboklab(42.7% 0.148 -0.0874)
OKLCHoklch(42.7% 0.172 329.4)
XYZxyz(12.5486, 6.6054, 19.3491)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A7B #1A7E1D
analogous
#4F1A7E #7E1A7B #7E1A49
triadic
#7E1A7B #7B7E1A #1A7B7E
tetradic
#7E1A7B #7E4F1A #1A7E1D #1A497E
square
#7E1A7B #7E4F1A #1A7E1D #1A497E
split-complementary
#7E1A7B #497E1A #1A7E4F
monochromatic
#190519 #4B1049 #7E1A7B #B124AD #D73CD2

Accessibility & contrast

On white

9.05
#7E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A7B
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A7B#FFFFFF#000000##FFFFFF
##7E1A7B1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407E
Deuteranopia (green-blind)
#394D79
Tritanopia (blue-blind)
#83294A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1a7b;
/* rgb */ color: rgb(126, 26, 123);
/* oklch */ color: oklch(42.7% 0.172 329.4);
Tailwind
colors: {
  custom: {
    50: '#a764a1',
    500: '#7e1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a7b;
$custom-light: #a764a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a7b",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 301.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42704,
    "c": 0.17187,
    "h": 329.4
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#7E1A7B
secondary
#42B245
accent
#E9443F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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