#7E288B#7E288B

#7E288B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.169 H 322.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E288B
RGBrgb(126, 40, 139)
HSLhsl(292, 55%, 35%)
HSVhsv(292, 71%, 55%)
CMYKcmyk(9.4%, 71.2%, 0%, 45.5%)
CIE-LABlab(33.60, 50.40, -37.26)
CIE-LCHlch(33.60, 62.68, 323.53°)
OKLaboklab(44.95% 0.1338 -0.104)
OKLCHoklch(44.95% 0.169 322.1)
XYZxyz(14.0227, 7.8181, 25.1915)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E288B #358B28
analogous
#4C288B #7E288B #8B2867
triadic
#7E288B #8B7E28 #288B7E
tetradic
#7E288B #8B4C28 #358B28 #28678B
square
#7E288B #8B4C28 #358B28 #28678B
split-complementary
#7E288B #678B28 #288B4C
monochromatic
#280D2C #531A5B #7E288B #A936BB #C15DD0

Accessibility & contrast

On white

8.19
#7E288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E288B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E288B#FFFFFF#000000##FFFFFF
##7E288B1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04498E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#803956
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e288b;
/* rgb */ color: rgb(126, 40, 139);
/* oklch */ color: oklch(45.0% 0.169 322.1);
Tailwind
colors: {
  custom: {
    50: '#a76aad',
    500: '#7e288b',
    950: '#000000',
  },
}
SCSS
$custom: #7e288b;
$custom-light: #a76aad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e288b",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 292.121,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44953,
    "c": 0.16946,
    "h": 322.1
  },
  "luminance": 0.07817
}

Semantic roles & 50–950 ramp

primary
#7E288B
secondary
#65B659
accent
#DF495D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E288B

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

Preview Lab → · Contrast checker → · Palette generator →

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