#7E2272#7E2272

#7E2272 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.156 H 333.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7E2272
RGBrgb(126, 34, 114)
HSLhsl(308, 58%, 31%)
HSVhsv(308, 73%, 49%)
CMYKcmyk(0%, 73%, 9.5%, 50.6%)
CIE-LABlab(31.34, 48.27, -25.19)
CIE-LCHlch(31.34, 54.45, 332.44°)
OKLaboklab(42.86% 0.1398 -0.069)
OKLCHoklch(42.86% 0.156 333.7)
XYZxyz(12.2136, 6.7956, 16.5847)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2272 #227E2E
analogous
#5C227E #7E2272 #7E2244
triadic
#7E2272 #727E22 #22727E
tetradic
#7E2272 #7E5C22 #227E2E #22447E
square
#7E2272 #7E5C22 #227E2E #22447E
split-complementary
#7E2272 #447E22 #227E5C
monochromatic
#1E081B #4E1546 #7E2272 #AE2F9E #CF4CBE

Accessibility & contrast

On white

8.90
#7E2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2272
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2272#FFFFFF#000000##FFFFFF
##7E22721.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204174
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#842A47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2272;
/* rgb */ color: rgb(126, 34, 114);
/* oklch */ color: oklch(42.9% 0.156 333.7);
Tailwind
colors: {
  custom: {
    50: '#a6669b',
    500: '#7e2272',
    950: '#000000',
  },
}
SCSS
$custom: #7e2272;
$custom-light: #a6669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2272",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 307.826,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42861,
    "c": 0.15586,
    "h": 333.7
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#7E2272
secondary
#4BB158
accent
#E15B47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2272

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

Preview Lab → · Contrast checker → · Palette generator →

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