#7E2F89#7E2F89

#7E2F89 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.158 H 322.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7E2F89
RGBrgb(126, 47, 137)
HSLhsl(293, 49%, 36%)
HSVhsv(293, 66%, 54%)
CMYKcmyk(8%, 65.7%, 0%, 46.3%)
CIE-LABlab(34.55, 47.02, -34.51)
CIE-LCHlch(34.55, 58.33, 323.72°)
OKLaboklab(45.6% 0.1257 -0.0961)
OKLCHoklch(45.6% 0.158 322.6)
XYZxyz(14.1356, 8.2756, 24.5148)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F89 #3A892F
analogous
#512F89 #7E2F89 #892F67
triadic
#7E2F89 #897E2F #2F897E
tetradic
#7E2F89 #89512F #3A892F #2F6789
square
#7E2F89 #89512F #3A892F #2F6789
split-complementary
#7E2F89 #67892F #2F8951
monochromatic
#2A102E #541F5B #7E2F89 #A83FB7 #BF67CB

Accessibility & contrast

On white

7.91
#7E2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F89
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F89#FFFFFF#000000##FFFFFF
##7E2F891.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8C
Deuteranopia (green-blind)
#3B5487
Tritanopia (blue-blind)
#803D58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2f89;
/* rgb */ color: rgb(126, 47, 137);
/* oklch */ color: oklch(45.6% 0.158 322.6);
Tailwind
colors: {
  custom: {
    50: '#a66eac',
    500: '#7e2f89',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f89;
$custom-light: #a66eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f89",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 292.667,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45598,
    "c": 0.15817,
    "h": 322.6
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#7E2F89
secondary
#6CB262
accent
#D84F60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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