#7E2CA0#7E2CA0

#7E2CA0 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.184 H 314.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7E2CA0
RGBrgb(126, 44, 160)
HSLhsl(282, 57%, 40%)
HSVhsv(282, 73%, 63%)
CMYKcmyk(21.2%, 72.5%, 0%, 37.3%)
CIE-LABlab(35.55, 53.01, -46.96)
CIE-LCHlch(35.55, 70.82, 318.47°)
OKLaboklab(46.78% 0.1279 -0.1324)
OKLCHoklch(46.78% 0.184 314)
XYZxyz(15.8489, 8.7756, 34.1099)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CA0 #4EA02C
analogous
#442CA0 #7E2CA0 #A02C88
triadic
#7E2CA0 #A07E2C #2CA07E
tetradic
#7E2CA0 #A0442C #4EA02C #2C88A0
square
#7E2CA0 #A0442C #4EA02C #2C88A0
split-complementary
#7E2CA0 #88A02C #2CA044
monochromatic
#321240 #581F70 #7E2CA0 #A13FCA #B96FD7

Accessibility & contrast

On white

7.62
#7E2CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E2CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2CA0
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CA0#FFFFFF#000000##FFFFFF
##7E2CA01.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#25569D
Tritanopia (blue-blind)
#7B4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ca0;
/* rgb */ color: rgb(126, 44, 160);
/* oklch */ color: oklch(46.8% 0.184 314.0);
Tailwind
colors: {
  custom: {
    50: '#a76dbd',
    500: '#7e2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ca0;
$custom-light: #a76dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ca0",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 282.414,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.46782,
    "c": 0.1841,
    "h": 314
  },
  "luminance": 0.08775
}

Semantic roles & 50–950 ramp

primary
#7E2CA0
secondary
#82BF69
accent
#E04874
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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