#7E2A95#7E2A95

#7E2A95 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.176 H 318.1°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2A95
RGBrgb(126, 42, 149)
HSLhsl(287, 56%, 37%)
HSVhsv(287, 72%, 58%)
CMYKcmyk(15.4%, 71.8%, 0%, 41.6%)
CIE-LABlab(34.52, 51.56, -41.93)
CIE-LCHlch(34.52, 66.46, 320.89°)
OKLaboklab(45.82% 0.1311 -0.1177)
OKLCHoklch(45.82% 0.176 318.1)
XYZxyz(14.8562, 8.2621, 29.2401)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A95 #41952A
analogous
#492A95 #7E2A95 #952A76
triadic
#7E2A95 #957E2A #2A957E
tetradic
#7E2A95 #95492A #41952A #2A7695
square
#7E2A95 #95492A #41952A #2A7695
split-complementary
#7E2A95 #76952A #2A9549
monochromatic
#2D0F36 #561D65 #7E2A95 #A637C5 #BC66D4

Accessibility & contrast

On white

7.92
#7E2A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A95
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A95#FFFFFF#000000##FFFFFF
##7E2A951.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2a95;
/* rgb */ color: rgb(126, 42, 149);
/* oklch */ color: oklch(45.8% 0.176 318.1);
Tailwind
colors: {
  custom: {
    50: '#a76bb5',
    500: '#7e2a95',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a95;
$custom-light: #a76bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a95",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 287.103,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.17614,
    "h": 318.1
  },
  "luminance": 0.08261
}

Semantic roles & 50–950 ramp

primary
#7E2A95
secondary
#74BA61
accent
#DF4869
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A95

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

Preview Lab → · Contrast checker → · Palette generator →

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