#7E2589#7E2589

#7E2589 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.171 H 323.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7E2589
RGBrgb(126, 37, 137)
HSLhsl(293, 57%, 34%)
HSVhsv(293, 73%, 54%)
CMYKcmyk(8%, 73%, 0%, 46.3%)
CIE-LABlab(33.06, 51.20, -36.89)
CIE-LCHlch(33.06, 63.10, 324.23°)
OKLaboklab(44.53% 0.1371 -0.1029)
OKLCHoklch(44.53% 0.171 323.1)
XYZxyz(13.7807, 7.5657, 24.3965)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2589 #308925
analogous
#4C2589 #7E2589 #892562
triadic
#7E2589 #897E25 #25897E
tetradic
#7E2589 #894C25 #308925 #256289
square
#7E2589 #894C25 #308925 #256289
split-complementary
#7E2589 #628925 #25894C
monochromatic
#250B29 #521859 #7E2589 #AA32B9 #C457D2

Accessibility & contrast

On white

8.36
#7E2589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E2589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2589
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2589#FFFFFF#000000##FFFFFF
##7E25891.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#355187
Tritanopia (blue-blind)
#803755
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2589;
/* rgb */ color: rgb(126, 37, 137);
/* oklch */ color: oklch(44.5% 0.171 323.1);
Tailwind
colors: {
  custom: {
    50: '#a769ac',
    500: '#7e2589',
    950: '#000000',
  },
}
SCSS
$custom: #7e2589;
$custom-light: #a769ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2589",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 293.4,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44527,
    "c": 0.17138,
    "h": 323.1
  },
  "luminance": 0.07565
}

Semantic roles & 50–950 ramp

primary
#7E2589
secondary
#5FB654
accent
#E14758
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2589

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

Preview Lab → · Contrast checker → · Palette generator →

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