#7E2B94#7E2B94

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

Color values

HEX#7E2B94
RGBrgb(126, 43, 148)
HSLhsl(287, 55%, 37%)
HSVhsv(287, 71%, 58%)
CMYKcmyk(14.9%, 70.9%, 0%, 42%)
CIE-LABlab(34.60, 50.95, -41.18)
CIE-LCHlch(34.60, 65.51, 321.05°)
OKLaboklab(45.85% 0.1301 -0.1155)
OKLCHoklch(45.85% 0.174 318.4)
XYZxyz(14.8126, 8.3022, 28.8335)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B94 #41942B
analogous
#4A2B94 #7E2B94 #942B75
triadic
#7E2B94 #947E2B #2B947E
tetradic
#7E2B94 #944A2B #41942B #2B7594
square
#7E2B94 #944A2B #41942B #2B7594
split-complementary
#7E2B94 #75942B #2B944A
monochromatic
#2D0F35 #561D65 #7E2B94 #A639C3 #BC67D3

Accessibility & contrast

On white

7.89
#7E2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E2B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B94
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B94#FFFFFF#000000##FFFFFF
##7E2B941.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#7E3F5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2b94;
/* rgb */ color: rgb(126, 43, 148);
/* oklch */ color: oklch(45.9% 0.174 318.4);
Tailwind
colors: {
  custom: {
    50: '#a76cb4',
    500: '#7e2b94',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b94;
$custom-light: #a76cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b94",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 287.429,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.17395,
    "h": 318.4
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#7E2B94
secondary
#74B962
accent
#DE4969
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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