#7E2B96#7E2B96

#7E2B96 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.176 H 317.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E2B96
RGBrgb(126, 43, 150)
HSLhsl(287, 55%, 38%)
HSVhsv(287, 71%, 59%)
CMYKcmyk(16%, 71.3%, 0%, 41.2%)
CIE-LABlab(34.73, 51.35, -42.20)
CIE-LCHlch(34.73, 66.47, 320.59°)
OKLaboklab(45.99% 0.1299 -0.1185)
OKLCHoklch(45.99% 0.176 317.6)
XYZxyz(14.9723, 8.3660, 29.6744)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B96 #43962B
analogous
#482B96 #7E2B96 #962B78
triadic
#7E2B96 #967E2B #2B967E
tetradic
#7E2B96 #96482B #43962B #2B7896
square
#7E2B96 #96482B #43962B #2B7896
split-complementary
#7E2B96 #78962B #2B9648
monochromatic
#2E1037 #561D66 #7E2B96 #A639C6 #BB68D4

Accessibility & contrast

On white

7.86
#7E2B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E2B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B96
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B96#FFFFFF#000000##FFFFFF
##7E2B961.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#2F5494
Tritanopia (blue-blind)
#7D405D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2b96;
/* rgb */ color: rgb(126, 43, 150);
/* oklch */ color: oklch(46.0% 0.176 317.6);
Tailwind
colors: {
  custom: {
    50: '#a76cb5',
    500: '#7e2b96',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b96;
$custom-light: #a76cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b96",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 286.542,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45988,
    "c": 0.17582,
    "h": 317.6
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#7E2B96
secondary
#76BA63
accent
#DF496B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2B96

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

Preview Lab → · Contrast checker → · Palette generator →

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