#7E2B95#7E2B95

#7E2B95 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.175 H 318.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E2B95
RGBrgb(126, 43, 149)
HSLhsl(287, 55%, 38%)
HSVhsv(287, 71%, 58%)
CMYKcmyk(15.4%, 71.1%, 0%, 41.6%)
CIE-LABlab(34.67, 51.15, -41.69)
CIE-LCHlch(34.67, 65.99, 320.82°)
OKLaboklab(45.92% 0.13 -0.117)
OKLCHoklch(45.92% 0.175 318)
XYZxyz(14.8921, 8.3340, 29.2521)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B95 #42952B
analogous
#492B95 #7E2B95 #952B77
triadic
#7E2B95 #957E2B #2B957E
tetradic
#7E2B95 #95492B #42952B #2B7795
square
#7E2B95 #95492B #42952B #2B7795
split-complementary
#7E2B95 #77952B #2B9549
monochromatic
#2E1036 #561D66 #7E2B95 #A639C4 #BC67D3

Accessibility & contrast

On white

7.88
#7E2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2B95
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B95#FFFFFF#000000##FFFFFF
##7E2B951.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2b95;
/* rgb */ color: rgb(126, 43, 149);
/* oklch */ color: oklch(45.9% 0.175 318.0);
Tailwind
colors: {
  custom: {
    50: '#a76cb5',
    500: '#7e2b95',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b95;
$custom-light: #a76cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b95",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 286.981,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45921,
    "c": 0.17488,
    "h": 318
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#7E2B95
secondary
#75BA62
accent
#DF496A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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