#7E2285#7E2285

#7E2285 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.171 H 324.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7E2285
RGBrgb(126, 34, 133)
HSLhsl(296, 59%, 33%)
HSVhsv(296, 74%, 52%)
CMYKcmyk(5.3%, 74.4%, 0%, 47.8%)
CIE-LABlab(32.42, 51.57, -35.42)
CIE-LCHlch(32.42, 62.57, 325.52°)
OKLaboklab(43.99% 0.1403 -0.0986)
OKLCHoklch(43.99% 0.171 324.9)
XYZxyz(13.4095, 7.2740, 22.8835)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2285 #298522
analogous
#4D2285 #7E2285 #85225A
triadic
#7E2285 #857E22 #22857E
tetradic
#7E2285 #854D22 #298522 #225A85
square
#7E2285 #854D22 #298522 #225A85
split-complementary
#7E2285 #5A8522 #22854D
monochromatic
#220924 #501654 #7E2285 #AC2EB6 #C94FD2

Accessibility & contrast

On white

8.56
#7E2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2285
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2285#FFFFFF#000000##FFFFFF
##7E22851.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024588
Deuteranopia (green-blind)
#365083
Tritanopia (blue-blind)
#813352
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2285;
/* rgb */ color: rgb(126, 34, 133);
/* oklch */ color: oklch(44.0% 0.171 324.9);
Tailwind
colors: {
  custom: {
    50: '#a767a9',
    500: '#7e2285',
    950: '#000000',
  },
}
SCSS
$custom: #7e2285;
$custom-light: #a767a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2285",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 295.758,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43992,
    "c": 0.17146,
    "h": 324.9
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#7E2285
secondary
#55B64D
accent
#E24550
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2285

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

Preview Lab → · Contrast checker → · Palette generator →

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