#7E2F84#7E2F84

#7E2F84 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.153 H 324.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2F84
RGBrgb(126, 47, 132)
HSLhsl(296, 47%, 35%)
HSVhsv(296, 64%, 52%)
CMYKcmyk(4.5%, 64.4%, 0%, 48.2%)
CIE-LABlab(34.26, 46.05, -31.88)
CIE-LCHlch(34.26, 56.01, 325.31°)
OKLaboklab(45.3% 0.1255 -0.0884)
OKLCHoklch(45.3% 0.154 324.8)
XYZxyz(13.7852, 8.1354, 22.6695)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F84 #35842F
analogous
#542F84 #7E2F84 #842F5F
triadic
#7E2F84 #847E2F #2F847E
tetradic
#7E2F84 #84542F #35842F #2F5F84
square
#7E2F84 #84542F #35842F #2F5F84
split-complementary
#7E2F84 #5F842F #2F8454
monochromatic
#280F2A #531F57 #7E2F84 #A93FB1 #C165C8

Accessibility & contrast

On white

7.99
#7E2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F84
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F84#FFFFFF#000000##FFFFFF
##7E2F841.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A87
Deuteranopia (green-blind)
#3E5482
Tritanopia (blue-blind)
#813B55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2f84;
/* rgb */ color: rgb(126, 47, 132);
/* oklch */ color: oklch(45.3% 0.153 324.8);
Tailwind
colors: {
  custom: {
    50: '#a66da8',
    500: '#7e2f84',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f84;
$custom-light: #a66da8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f84",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 295.765,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45297,
    "c": 0.1535,
    "h": 324.8
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#7E2F84
secondary
#65AF60
accent
#D7515A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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