#7E2CA3#7E2CA3

#7E2CA3 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.187 H 313.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7E2CA3
RGBrgb(126, 44, 163)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(22.7%, 73%, 0%, 36.1%)
CIE-LABlab(35.76, 53.65, -48.43)
CIE-LCHlch(35.76, 72.28, 317.93°)
OKLaboklab(47% 0.1275 -0.1368)
OKLCHoklch(47% 0.187 313)
XYZxyz(16.1146, 8.8818, 35.5087)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CA3 #51A32C
analogous
#432CA3 #7E2CA3 #A32C8C
triadic
#7E2CA3 #A37E2C #2CA37E
tetradic
#7E2CA3 #A3432C #51A32C #2C8CA3
square
#7E2CA3 #A3432C #51A32C #2C8CA3
split-complementary
#7E2CA3 #8CA32C #2CA343
monochromatic
#331243 #591F73 #7E2CA3 #A041CC #B871D9

Accessibility & contrast

On white

7.56
#7E2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E2CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2CA3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CA3#FFFFFF#000000##FFFFFF
##7E2CA31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#2056A0
Tritanopia (blue-blind)
#7A4665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ca3;
/* rgb */ color: rgb(126, 44, 163);
/* oklch */ color: oklch(47.0% 0.187 313.0);
Tailwind
colors: {
  custom: {
    50: '#a76dbf',
    500: '#7e2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ca3;
$custom-light: #a76dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ca3",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 281.345,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46995,
    "c": 0.18699,
    "h": 313
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#7E2CA3
secondary
#85C06B
accent
#E14777
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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