#7E2899#7E2899

#7E2899 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.182 H 316.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2899
RGBrgb(126, 40, 153)
HSLhsl(286, 59%, 38%)
HSVhsv(286, 74%, 60%)
CMYKcmyk(17.6%, 73.9%, 0%, 40%)
CIE-LABlab(34.51, 53.17, -44.39)
CIE-LCHlch(34.51, 69.27, 320.14°)
OKLaboklab(45.89% 0.1328 -0.1249)
OKLCHoklch(45.89% 0.182 316.8)
XYZxyz(15.1119, 8.2537, 30.9279)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2899 #439928
analogous
#462899 #7E2899 #99287B
triadic
#7E2899 #997E28 #28997E
tetradic
#7E2899 #994628 #439928 #287B99
square
#7E2899 #994628 #439928 #287B99
split-complementary
#7E2899 #7B9928 #289946
monochromatic
#2E0F38 #561B68 #7E2899 #A635CA #BB65D7

Accessibility & contrast

On white

7.92
#7E2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2899
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2899#FFFFFF#000000##FFFFFF
##7E28991.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#295496
Tritanopia (blue-blind)
#7D3F5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2899;
/* rgb */ color: rgb(126, 40, 153);
/* oklch */ color: oklch(45.9% 0.182 316.8);
Tailwind
colors: {
  custom: {
    50: '#a76bb8',
    500: '#7e2899',
    950: '#000000',
  },
}
SCSS
$custom: #7e2899;
$custom-light: #a76bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2899",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 285.664,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45889,
    "c": 0.18227,
    "h": 316.8
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#7E2899
secondary
#76BD60
accent
#E2466B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2899

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

Preview Lab → · Contrast checker → · Palette generator →

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