#7E1A72#7E1A72

#7E1A72 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.165 H 333.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7E1A72
RGBrgb(126, 26, 114)
HSLhsl(307, 66%, 30%)
HSVhsv(307, 79%, 49%)
CMYKcmyk(0%, 79.4%, 9.5%, 50.6%)
CIE-LABlab(30.38, 51.01, -26.71)
CIE-LCHlch(30.38, 57.58, 332.37°)
OKLaboklab(42.17% 0.1478 -0.0733)
OKLCHoklch(42.17% 0.165 333.6)
XYZxyz(12.0109, 6.3904, 16.5172)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A72 #1A7E26
analogous
#581A7E #7E1A72 #7E1A40
triadic
#7E1A72 #727E1A #1A727E
tetradic
#7E1A72 #7E581A #1A7E26 #1A407E
square
#7E1A72 #7E581A #1A7E26 #1A407E
split-complementary
#7E1A72 #407E1A #1A7E58
monochromatic
#190517 #4B1044 #7E1A72 #B124A0 #D73CC4

Accessibility & contrast

On white

9.22
#7E1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A72
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A72#FFFFFF#000000##FFFFFF
##7E1A721.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E74
Deuteranopia (green-blind)
#3D4D70
Tritanopia (blue-blind)
#842545
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1a72;
/* rgb */ color: rgb(126, 26, 114);
/* oklch */ color: oklch(42.2% 0.165 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7639b',
    500: '#7e1a72',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a72;
$custom-light: #a7639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a72",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 307.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4217,
    "c": 0.16496,
    "h": 333.6
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#7E1A72
secondary
#42B24F
accent
#E9533F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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