#7E288E#7E288E

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

Color values

HEX#7E288E
RGBrgb(126, 40, 142)
HSLhsl(291, 56%, 36%)
HSVhsv(291, 72%, 56%)
CMYKcmyk(11.3%, 71.8%, 0%, 44.3%)
CIE-LABlab(33.79, 50.98, -38.81)
CIE-LCHlch(33.79, 64.08, 322.72°)
OKLaboklab(45.15% 0.1337 -0.1085)
OKLCHoklch(45.15% 0.172 320.9)
XYZxyz(14.2449, 7.9069, 26.3618)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E288E #388E28
analogous
#4B288E #7E288E #8E286B
triadic
#7E288E #8E7E28 #288E7E
tetradic
#7E288E #8E4B28 #388E28 #286B8E
square
#7E288E #8E4B28 #388E28 #286B8E
split-complementary
#7E288E #6B8E28 #288E4B
monochromatic
#290D2F #541B5E #7E288E #A835BE #C05FD2

Accessibility & contrast

On white

8.14
#7E288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E288E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E288E#FFFFFF#000000##FFFFFF
##7E288E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#33538C
Tritanopia (blue-blind)
#7F3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e288e;
/* rgb */ color: rgb(126, 40, 142);
/* oklch */ color: oklch(45.1% 0.172 320.9);
Tailwind
colors: {
  custom: {
    50: '#a76aaf',
    500: '#7e288e',
    950: '#000000',
  },
}
SCSS
$custom: #7e288e;
$custom-light: #a76aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e288e",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 290.588,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45148,
    "c": 0.17217,
    "h": 320.9
  },
  "luminance": 0.07906
}

Semantic roles & 50–950 ramp

primary
#7E288E
secondary
#69B75B
accent
#DF4860
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E288E

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

Preview Lab → · Contrast checker → · Palette generator →

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