#7E2281#7E2281

#7E2281 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.168 H 326.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E2281
RGBrgb(126, 34, 129)
HSLhsl(298, 58%, 32%)
HSVhsv(298, 74%, 51%)
CMYKcmyk(2.3%, 73.6%, 0%, 49.4%)
CIE-LABlab(32.18, 50.85, -33.31)
CIE-LCHlch(32.18, 60.79, 326.77°)
OKLaboklab(43.74% 0.1404 -0.0925)
OKLCHoklch(43.74% 0.168 326.6)
XYZxyz(13.1384, 7.1655, 21.4557)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2281 #258122
analogous
#4F2281 #7E2281 #812255
triadic
#7E2281 #817E22 #22817E
tetradic
#7E2281 #814F22 #258122 #225581
square
#7E2281 #814F22 #258122 #225581
split-complementary
#7E2281 #558122 #22814F
monochromatic
#1F0820 #4F1551 #7E2281 #AD2FB1 #CC4DD0

Accessibility & contrast

On white

8.63
#7E2281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E2281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2281
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2281#FFFFFF#000000##FFFFFF
##7E22811.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4484
Deuteranopia (green-blind)
#39507F
Tritanopia (blue-blind)
#82314F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2281;
/* rgb */ color: rgb(126, 34, 129);
/* oklch */ color: oklch(43.7% 0.168 326.6);
Tailwind
colors: {
  custom: {
    50: '#a767a6',
    500: '#7e2281',
    950: '#000000',
  },
}
SCSS
$custom: #7e2281;
$custom-light: #a767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2281",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 298.105,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43741,
    "c": 0.16807,
    "h": 326.6
  },
  "luminance": 0.07165
}

Semantic roles & 50–950 ramp

primary
#7E2281
secondary
#4FB34B
accent
#E1464B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2281

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

Preview Lab → · Contrast checker → · Palette generator →

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