#7E288F#7E288F

#7E288F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.173 H 320.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7E288F
RGBrgb(126, 40, 143)
HSLhsl(290, 56%, 36%)
HSVhsv(290, 72%, 56%)
CMYKcmyk(11.9%, 72%, 0%, 43.9%)
CIE-LABlab(33.85, 51.18, -39.32)
CIE-LCHlch(33.85, 64.54, 322.46°)
OKLaboklab(45.21% 0.1336 -0.11)
OKLCHoklch(45.21% 0.173 320.5)
XYZxyz(14.3203, 7.9371, 26.7590)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E288F #398F28
analogous
#4A288F #7E288F #8F286C
triadic
#7E288F #8F7E28 #288F7E
tetradic
#7E288F #8F4A28 #398F28 #286C8F
square
#7E288F #8F4A28 #398F28 #286C8F
split-complementary
#7E288F #6C8F28 #288F4A
monochromatic
#2A0D2F #541B5F #7E288F #A835BF #BF5FD2

Accessibility & contrast

On white

8.12
#7E288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E288F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E288F#FFFFFF#000000##FFFFFF
##7E288F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#32538D
Tritanopia (blue-blind)
#7F3B59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e288f;
/* rgb */ color: rgb(126, 40, 143);
/* oklch */ color: oklch(45.2% 0.173 320.5);
Tailwind
colors: {
  custom: {
    50: '#a76ab0',
    500: '#7e288f',
    950: '#000000',
  },
}
SCSS
$custom: #7e288f;
$custom-light: #a76ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e288f",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 290.097,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45213,
    "c": 0.17309,
    "h": 320.5
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#7E288F
secondary
#6AB85B
accent
#E04861
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E288F

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

Preview Lab → · Contrast checker → · Palette generator →

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