#7E2D87#7E2D87

#7E2D87 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.159 H 323.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E2D87
RGBrgb(126, 45, 135)
HSLhsl(294, 50%, 35%)
HSVhsv(294, 67%, 53%)
CMYKcmyk(6.7%, 66.7%, 0%, 47.1%)
CIE-LABlab(34.11, 47.52, -33.97)
CIE-LCHlch(34.11, 58.42, 324.44°)
OKLaboklab(45.24% 0.1281 -0.0945)
OKLCHoklch(45.24% 0.159 323.6)
XYZxyz(13.9153, 8.0625, 23.7402)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D87 #36872D
analogous
#512D87 #7E2D87 #872D63
triadic
#7E2D87 #877E2D #2D877E
tetradic
#7E2D87 #87512D #36872D #2D6387
square
#7E2D87 #87512D #36872D #2D6387
split-complementary
#7E2D87 #63872D #2D8751
monochromatic
#280E2B #531E59 #7E2D87 #A93CB5 #C163CB

Accessibility & contrast

On white

8.04
#7E2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D87
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D87#FFFFFF#000000##FFFFFF
##7E2D871.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194A8A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#803B56
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2d87;
/* rgb */ color: rgb(126, 45, 135);
/* oklch */ color: oklch(45.2% 0.159 323.6);
Tailwind
colors: {
  custom: {
    50: '#a66caa',
    500: '#7e2d87',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d87;
$custom-light: #a66caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d87",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 294,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45244,
    "c": 0.15914,
    "h": 323.6
  },
  "luminance": 0.08062
}

Semantic roles & 50–950 ramp

primary
#7E2D87
secondary
#67B25E
accent
#DA4E5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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