#7E2284#7E2284

#7E2284 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.171 H 325.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7E2284
RGBrgb(126, 34, 132)
HSLhsl(296, 59%, 33%)
HSVhsv(296, 74%, 52%)
CMYKcmyk(4.5%, 74.2%, 0%, 48.2%)
CIE-LABlab(32.36, 51.39, -34.90)
CIE-LCHlch(32.36, 62.12, 325.82°)
OKLaboklab(43.93% 0.1403 -0.0971)
OKLCHoklch(43.93% 0.171 325.3)
XYZxyz(13.3408, 7.2465, 22.5214)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2284 #288422
analogous
#4D2284 #7E2284 #842259
triadic
#7E2284 #847E22 #22847E
tetradic
#7E2284 #844D22 #288422 #225984
square
#7E2284 #844D22 #288422 #225984
split-complementary
#7E2284 #598422 #22844D
monochromatic
#210923 #501553 #7E2284 #AC2FB5 #CA4FD2

Accessibility & contrast

On white

8.57
#7E2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2284
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2284#FFFFFF#000000##FFFFFF
##7E22841.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044587
Deuteranopia (green-blind)
#375082
Tritanopia (blue-blind)
#813351
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2284;
/* rgb */ color: rgb(126, 34, 132);
/* oklch */ color: oklch(43.9% 0.171 325.3);
Tailwind
colors: {
  custom: {
    50: '#a767a8',
    500: '#7e2284',
    950: '#000000',
  },
}
SCSS
$custom: #7e2284;
$custom-light: #a767a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2284",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 296.327,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43928,
    "c": 0.17061,
    "h": 325.3
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#7E2284
secondary
#53B54D
accent
#E2464F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2284

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

Preview Lab → · Contrast checker → · Palette generator →

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