#7E2EA5#7E2EA5

#7E2EA5 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.187 H 312.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA5
RGBrgb(126, 46, 165)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(23.6%, 72.1%, 0%, 35.3%)
CIE-LABlab(36.19, 53.25, -48.93)
CIE-LCHlch(36.19, 72.32, 317.42°)
OKLaboklab(47.35% 0.1252 -0.1383)
OKLCHoklch(47.35% 0.187 312.2)
XYZxyz(16.3715, 9.1067, 36.4854)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA5 #55A52E
analogous
#432EA5 #7E2EA5 #A52E91
triadic
#7E2EA5 #A57E2E #2EA57E
tetradic
#7E2EA5 #A5432E #55A52E #2E91A5
square
#7E2EA5 #A5432E #55A52E #2E91A5
split-complementary
#7E2EA5 #91A52E #2EA543
monochromatic
#351345 #592175 #7E2EA5 #9F45CB #B875D8

Accessibility & contrast

On white

7.44
#7E2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2EA5
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA5#FFFFFF#000000##FFFFFF
##7E2EA51.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#794866
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ea5;
/* rgb */ color: rgb(126, 46, 165);
/* oklch */ color: oklch(47.3% 0.187 312.2);
Tailwind
colors: {
  custom: {
    50: '#a76ec0',
    500: '#7e2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea5;
$custom-light: #a76ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea5",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 280.336,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47347,
    "c": 0.18652,
    "h": 312.2
  },
  "luminance": 0.09106
}

Semantic roles & 50–950 ramp

primary
#7E2EA5
secondary
#89C06F
accent
#E0487A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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