#7E2995#7E2995

#7E2995 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.177 H 318.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7E2995
RGBrgb(126, 41, 149)
HSLhsl(287, 57%, 37%)
HSVhsv(287, 72%, 58%)
CMYKcmyk(15.4%, 72.5%, 0%, 41.6%)
CIE-LABlab(34.38, 51.97, -42.15)
CIE-LCHlch(34.38, 66.92, 320.95°)
OKLaboklab(45.71% 0.1321 -0.1183)
OKLCHoklch(45.71% 0.177 318.1)
XYZxyz(14.8212, 8.1921, 29.2285)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2995 #409529
analogous
#482995 #7E2995 #952976
triadic
#7E2995 #957E29 #29957E
tetradic
#7E2995 #954829 #409529 #297695
square
#7E2995 #954829 #409529 #297695
split-complementary
#7E2995 #769529 #299548
monochromatic
#2D0F35 #551C65 #7E2995 #A736C5 #BC64D4

Accessibility & contrast

On white

7.96
#7E2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2995
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2995#FFFFFF#000000##FFFFFF
##7E29951.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#2E5493
Tritanopia (blue-blind)
#7D3E5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2995;
/* rgb */ color: rgb(126, 41, 149);
/* oklch */ color: oklch(45.7% 0.177 318.1);
Tailwind
colors: {
  custom: {
    50: '#a76bb5',
    500: '#7e2995',
    950: '#000000',
  },
}
SCSS
$custom: #7e2995;
$custom-light: #a76bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2995",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 287.222,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45714,
    "c": 0.17737,
    "h": 318.1
  },
  "luminance": 0.08191
}

Semantic roles & 50–950 ramp

primary
#7E2995
secondary
#73BA60
accent
#E04868
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2995

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

Preview Lab → · Contrast checker → · Palette generator →

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