#7E2CA9#7E2CA9

#7E2CA9 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.193 H 311.1°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7E2CA9
RGBrgb(126, 44, 169)
HSLhsl(279, 59%, 42%)
HSVhsv(279, 74%, 66%)
CMYKcmyk(25.4%, 74%, 0%, 33.7%)
CIE-LABlab(36.18, 54.94, -51.35)
CIE-LCHlch(36.18, 75.20, 316.93°)
OKLaboklab(47.43% 0.1267 -0.1453)
OKLCHoklch(47.43% 0.193 311.1)
XYZxyz(16.6649, 9.1020, 38.4074)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CA9 #57A92C
analogous
#402CA9 #7E2CA9 #A92C96
triadic
#7E2CA9 #A97E2C #2CA97E
tetradic
#7E2CA9 #A9402C #57A92C #2C96A9
square
#7E2CA9 #A9402C #57A92C #2C96A9
split-complementary
#7E2CA9 #96A92C #2CA940
monochromatic
#361348 #5A1F78 #7E2CA9 #9F44CE #B874DB

Accessibility & contrast

On white

7.45
#7E2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E2CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2CA9
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CA9#FFFFFF#000000##FFFFFF
##7E2CA91.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#1657A6
Tritanopia (blue-blind)
#784868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ca9;
/* rgb */ color: rgb(126, 44, 169);
/* oklch */ color: oklch(47.4% 0.193 311.1);
Tailwind
colors: {
  custom: {
    50: '#a86dc3',
    500: '#7e2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ca9;
$custom-light: #a86dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ca9",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 279.36,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47431,
    "c": 0.19277,
    "h": 311.1
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#7E2CA9
secondary
#8BC36E
accent
#E2467C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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