#7E2B97#7E2B97

#7E2B97 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.177 H 317.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7E2B97
RGBrgb(126, 43, 151)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 59%)
CMYKcmyk(16.6%, 71.5%, 0%, 40.8%)
CIE-LABlab(34.80, 51.56, -42.70)
CIE-LCHlch(34.80, 66.95, 320.37°)
OKLaboklab(46.06% 0.1298 -0.1199)
OKLCHoklch(46.06% 0.177 317.3)
XYZxyz(15.0532, 8.3984, 30.1003)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B97 #44972B
analogous
#482B97 #7E2B97 #972B7A
triadic
#7E2B97 #977E2B #2B977E
tetradic
#7E2B97 #97482B #44972B #2B7A97
square
#7E2B97 #97482B #44972B #2B7A97
split-complementary
#7E2B97 #7A972B #2B9748
monochromatic
#2F1038 #561D67 #7E2B97 #A639C7 #BB68D4

Accessibility & contrast

On white

7.84
#7E2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B97
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B97#FFFFFF#000000##FFFFFF
##7E2B971.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2E5495
Tritanopia (blue-blind)
#7D405E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2b97;
/* rgb */ color: rgb(126, 43, 151);
/* oklch */ color: oklch(46.1% 0.177 317.3);
Tailwind
colors: {
  custom: {
    50: '#a76cb6',
    500: '#7e2b97',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b97;
$custom-light: #a76cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b97",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 286.111,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46055,
    "c": 0.17677,
    "h": 317.3
  },
  "luminance": 0.08398
}

Semantic roles & 50–950 ramp

primary
#7E2B97
secondary
#77BB63
accent
#DF496C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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