#7E2897#7E2897

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

Color values

HEX#7E2897
RGBrgb(126, 40, 151)
HSLhsl(286, 58%, 37%)
HSVhsv(286, 74%, 59%)
CMYKcmyk(16.6%, 73.5%, 0%, 40.8%)
CIE-LABlab(34.37, 52.77, -43.39)
CIE-LCHlch(34.37, 68.32, 320.57°)
OKLaboklab(45.75% 0.133 -0.1219)
OKLCHoklch(45.75% 0.18 317.5)
XYZxyz(14.9481, 8.1882, 30.0652)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2897 #419728
analogous
#462897 #7E2897 #972879
triadic
#7E2897 #977E28 #28977E
tetradic
#7E2897 #974628 #419728 #287997
square
#7E2897 #974628 #419728 #287997
split-complementary
#7E2897 #799728 #289746
monochromatic
#2D0E36 #561B67 #7E2897 #A635C7 #BC64D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2897#FFFFFF#000000##FFFFFF
##7E28971.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)
#004B9A
Deuteranopia (green-blind)
#2B5394
Tritanopia (blue-blind)
#7D3F5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2897;
/* rgb */ color: rgb(126, 40, 151);
/* oklch */ color: oklch(45.8% 0.180 317.5);
Tailwind
colors: {
  custom: {
    50: '#a76bb6',
    500: '#7e2897',
    950: '#000000',
  },
}
SCSS
$custom: #7e2897;
$custom-light: #a76bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2897",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 286.486,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.18042,
    "h": 317.5
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#7E2897
secondary
#74BC5F
accent
#E14669
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2897

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

Preview Lab → · Contrast checker → · Palette generator →

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