#7E2471#7E2471

#7E2471 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.153 H 334.3°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7E2471
RGBrgb(126, 36, 113)
HSLhsl(309, 56%, 32%)
HSVhsv(309, 71%, 49%)
CMYKcmyk(0%, 71.4%, 10.3%, 50.6%)
CIE-LABlab(31.56, 47.34, -24.21)
CIE-LCHlch(31.56, 53.17, 332.91°)
OKLaboklab(43% 0.1374 -0.0662)
OKLCHoklch(43% 0.153 334.3)
XYZxyz(12.2158, 6.8907, 16.3062)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2471 #247E31
analogous
#5E247E #7E2471 #7E2444
triadic
#7E2471 #717E24 #24717E
tetradic
#7E2471 #7E5E24 #247E31 #24447E
square
#7E2471 #7E5E24 #247E31 #24447E
split-complementary
#7E2471 #447E24 #247E5E
monochromatic
#1F091C #4E1646 #7E2471 #AE329C #CD50BB

Accessibility & contrast

On white

8.83
#7E2471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E2471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2471
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2471#FFFFFF#000000##FFFFFF
##7E24711.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#842B47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2471;
/* rgb */ color: rgb(126, 36, 113);
/* oklch */ color: oklch(43.0% 0.153 334.3);
Tailwind
colors: {
  custom: {
    50: '#a6679a',
    500: '#7e2471',
    950: '#000000',
  },
}
SCSS
$custom: #7e2471;
$custom-light: #a6679a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2471",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 308.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43003,
    "c": 0.15253,
    "h": 334.3
  },
  "luminance": 0.0689
}

Semantic roles & 50–950 ramp

primary
#7E2471
secondary
#4EB05C
accent
#DF5F49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2471

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

Preview Lab → · Contrast checker → · Palette generator →

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