#7E2186#7E2186

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

Color values

HEX#7E2186
RGBrgb(126, 33, 134)
HSLhsl(295, 60%, 33%)
HSVhsv(295, 75%, 53%)
CMYKcmyk(6%, 75.4%, 0%, 47.5%)
CIE-LABlab(32.36, 52.11, -36.15)
CIE-LCHlch(32.36, 63.42, 325.26°)
OKLaboklab(43.97% 0.1412 -0.1007)
OKLCHoklch(43.97% 0.173 324.5)
XYZxyz(13.4508, 7.2454, 23.2397)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2186 #298621
analogous
#4C2186 #7E2186 #86215B
triadic
#7E2186 #867E21 #21867E
tetradic
#7E2186 #864C21 #298621 #215B86
square
#7E2186 #864C21 #298621 #215B86
split-complementary
#7E2186 #5B8621 #21864C
monochromatic
#220924 #501555 #7E2186 #AC2DB7 #C94ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2186#FFFFFF#000000##FFFFFF
##7E21861.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)
#004589
Deuteranopia (green-blind)
#355084
Tritanopia (blue-blind)
#813352
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2186;
/* rgb */ color: rgb(126, 33, 134);
/* oklch */ color: oklch(44.0% 0.173 324.5);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7e2186',
    950: '#000000',
  },
}
SCSS
$custom: #7e2186;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2186",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 295.248,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43966,
    "c": 0.17344,
    "h": 324.5
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

primary
#7E2186
secondary
#55B74C
accent
#E44451
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E2186

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

Preview Lab → · Contrast checker → · Palette generator →

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