#7E1A73#7E1A73

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

Color values

HEX#7E1A73
RGBrgb(126, 26, 115)
HSLhsl(307, 66%, 30%)
HSVhsv(307, 79%, 49%)
CMYKcmyk(0%, 79.4%, 8.7%, 50.6%)
CIE-LABlab(30.43, 51.17, -27.25)
CIE-LCHlch(30.43, 57.97, 331.96°)
OKLaboklab(42.23% 0.1479 -0.0748)
OKLCHoklch(42.23% 0.166 333.1)
XYZxyz(12.0682, 6.4133, 16.8186)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A73 #1A7E25
analogous
#571A7E #7E1A73 #7E1A41
triadic
#7E1A73 #737E1A #1A737E
tetradic
#7E1A73 #7E571A #1A7E25 #1A417E
square
#7E1A73 #7E571A #1A7E25 #1A417E
split-complementary
#7E1A73 #417E1A #1A7E57
monochromatic
#190517 #4B1045 #7E1A73 #B124A1 #D73CC6

Accessibility & contrast

On white

9.20
#7E1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1A73
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A73#FFFFFF#000000##FFFFFF
##7E1A731.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153F75
Deuteranopia (green-blind)
#3D4D71
Tritanopia (blue-blind)
#842545
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1a73;
/* rgb */ color: rgb(126, 26, 115);
/* oklch */ color: oklch(42.2% 0.166 333.1);
Tailwind
colors: {
  custom: {
    50: '#a7639b',
    500: '#7e1a73',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a73;
$custom-light: #a7639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a73",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 306.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.16572,
    "h": 333.1
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#7E1A73
secondary
#42B24E
accent
#E9523F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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