#7E2B87#7E2B87

#7E2B87 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.162 H 323.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7E2B87
RGBrgb(126, 43, 135)
HSLhsl(294, 52%, 35%)
HSVhsv(294, 68%, 53%)
CMYKcmyk(6.7%, 68.1%, 0%, 47.1%)
CIE-LABlab(33.80, 48.39, -34.47)
CIE-LCHlch(33.80, 59.41, 324.54°)
OKLaboklab(45.02% 0.1304 -0.0959)
OKLCHoklch(45.02% 0.162 323.7)
XYZxyz(13.8408, 7.9134, 23.7154)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B87 #34872B
analogous
#502B87 #7E2B87 #872B62
triadic
#7E2B87 #877E2B #2B877E
tetradic
#7E2B87 #87502B #34872B #2B6287
square
#7E2B87 #87502B #34872B #2B6287
split-complementary
#7E2B87 #62872B #2B8750
monochromatic
#270D2A #531C59 #7E2B87 #A93AB5 #C260CC

Accessibility & contrast

On white

8.13
#7E2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2B87
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B87#FFFFFF#000000##FFFFFF
##7E2B871.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#803A55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2b87;
/* rgb */ color: rgb(126, 43, 135);
/* oklch */ color: oklch(45.0% 0.162 323.7);
Tailwind
colors: {
  custom: {
    50: '#a66baa',
    500: '#7e2b87',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b87;
$custom-light: #a66baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b87",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 294.13,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4502,
    "c": 0.1619,
    "h": 323.7
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#7E2B87
secondary
#64B25B
accent
#DB4D5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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