#7E2185#7E2185

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

Color values

HEX#7E2185
RGBrgb(126, 33, 133)
HSLhsl(296, 60%, 33%)
HSVhsv(296, 75%, 52%)
CMYKcmyk(5.3%, 75.2%, 0%, 47.8%)
CIE-LABlab(32.30, 51.93, -35.62)
CIE-LCHlch(32.30, 62.98, 325.55°)
OKLaboklab(43.9% 0.1412 -0.0992)
OKLCHoklch(43.9% 0.173 324.9)
XYZxyz(13.3814, 7.2176, 22.8741)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2185 #288521
analogous
#4C2185 #7E2185 #85215A
triadic
#7E2185 #857E21 #21857E
tetradic
#7E2185 #854C21 #288521 #215A85
square
#7E2185 #854C21 #288521 #215A85
split-complementary
#7E2185 #5A8521 #21854C
monochromatic
#210923 #501554 #7E2185 #AC2DB6 #CA4DD3

Accessibility & contrast

On white

8.59
#7E2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2185
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2185#FFFFFF#000000##FFFFFF
##7E21851.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2185;
/* rgb */ color: rgb(126, 33, 133);
/* oklch */ color: oklch(43.9% 0.173 324.9);
Tailwind
colors: {
  custom: {
    50: '#a767a9',
    500: '#7e2185',
    950: '#000000',
  },
}
SCSS
$custom: #7e2185;
$custom-light: #a767a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2185",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 295.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43902,
    "c": 0.17259,
    "h": 324.9
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#7E2185
secondary
#53B64C
accent
#E34450
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E2185

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

Preview Lab → · Contrast checker → · Palette generator →

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