#7E2279#7E2279

#7E2279 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.161 H 330.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7E2279
RGBrgb(126, 34, 121)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 73%, 49%)
CMYKcmyk(0%, 73%, 4%, 50.6%)
CIE-LABlab(31.72, 49.45, -29.02)
CIE-LCHlch(31.72, 57.34, 329.59°)
OKLaboklab(43.26% 0.1402 -0.08)
OKLCHoklch(43.26% 0.161 330.3)
XYZxyz(12.6273, 6.9611, 18.7640)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2279 #227E27
analogous
#55227E #7E2279 #7E224B
triadic
#7E2279 #797E22 #22797E
tetradic
#7E2279 #7E5522 #227E27 #224B7E
square
#7E2279 #7E5522 #227E27 #224B7E
split-complementary
#7E2279 #4B7E22 #227E55
monochromatic
#1E081C #4E154B #7E2279 #AE2FA7 #CF4CC8

Accessibility & contrast

On white

8.78
#7E2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2279
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2279#FFFFFF#000000##FFFFFF
##7E22791.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437B
Deuteranopia (green-blind)
#3D4F77
Tritanopia (blue-blind)
#832D4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e2279;
/* rgb */ color: rgb(126, 34, 121);
/* oklch */ color: oklch(43.3% 0.161 330.3);
Tailwind
colors: {
  custom: {
    50: '#a667a0',
    500: '#7e2279',
    950: '#000000',
  },
}
SCSS
$custom: #7e2279;
$custom-light: #a667a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2279",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 303.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43259,
    "c": 0.16145,
    "h": 330.3
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#7E2279
secondary
#4BB151
accent
#E14F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2279

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

Preview Lab → · Contrast checker → · Palette generator →

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