#7E288D#7E288D

#7E288D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.171 H 321.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7E288D
RGBrgb(126, 40, 141)
HSLhsl(291, 56%, 35%)
HSVhsv(291, 72%, 55%)
CMYKcmyk(10.6%, 71.6%, 0%, 44.7%)
CIE-LABlab(33.73, 50.79, -38.30)
CIE-LCHlch(33.73, 63.61, 322.98°)
OKLaboklab(45.08% 0.1337 -0.107)
OKLCHoklch(45.08% 0.171 321.3)
XYZxyz(14.1702, 7.8770, 25.9682)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E288D #378D28
analogous
#4B288D #7E288D #8D2869
triadic
#7E288D #8D7E28 #288D7E
tetradic
#7E288D #8D4B28 #378D28 #28698D
square
#7E288D #8D4B28 #378D28 #28698D
split-complementary
#7E288D #698D28 #288D4B
monochromatic
#290D2E #531A5D #7E288D #A936BD #C05ED1

Accessibility & contrast

On white

8.15
#7E288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E288D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E288D#FFFFFF#000000##FFFFFF
##7E288D1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#34528B
Tritanopia (blue-blind)
#7F3A58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e288d;
/* rgb */ color: rgb(126, 40, 141);
/* oklch */ color: oklch(45.1% 0.171 321.3);
Tailwind
colors: {
  custom: {
    50: '#a76aaf',
    500: '#7e288d',
    950: '#000000',
  },
}
SCSS
$custom: #7e288d;
$custom-light: #a76aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e288d",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 291.089,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.17127,
    "h": 321.3
  },
  "luminance": 0.07876
}

Semantic roles & 50–950 ramp

primary
#7E288D
secondary
#68B75A
accent
#DF495F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E288D

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

Preview Lab → · Contrast checker → · Palette generator →

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