#7E2271#7E2271

#7E2271 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.155 H 334.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2271
RGBrgb(126, 34, 113)
HSLhsl(308, 58%, 31%)
HSVhsv(308, 73%, 49%)
CMYKcmyk(0%, 73%, 10.3%, 50.6%)
CIE-LABlab(31.28, 48.11, -24.64)
CIE-LCHlch(31.28, 54.05, 332.88°)
OKLaboklab(42.81% 0.1397 -0.0674)
OKLCHoklch(42.81% 0.155 334.2)
XYZxyz(12.1570, 6.7730, 16.2866)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2271 #227E2F
analogous
#5D227E #7E2271 #7E2243
triadic
#7E2271 #717E22 #22717E
tetradic
#7E2271 #7E5D22 #227E2F #22437E
square
#7E2271 #7E5D22 #227E2F #22437E
split-complementary
#7E2271 #437E22 #227E5D
monochromatic
#1E081B #4E1546 #7E2271 #AE2F9C #CF4CBC

Accessibility & contrast

On white

8.92
#7E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2271
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2271#FFFFFF#000000##FFFFFF
##7E22711.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204173
Deuteranopia (green-blind)
#414E6F
Tritanopia (blue-blind)
#842A47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2271;
/* rgb */ color: rgb(126, 34, 113);
/* oklch */ color: oklch(42.8% 0.155 334.2);
Tailwind
colors: {
  custom: {
    50: '#a6669a',
    500: '#7e2271',
    950: '#000000',
  },
}
SCSS
$custom: #7e2271;
$custom-light: #a6669a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2271",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 308.478,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.15509,
    "h": 334.2
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#7E2271
secondary
#4BB15A
accent
#E15D47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2271

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

Preview Lab → · Contrast checker → · Palette generator →

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