#7E2FA5#7E2FA5

#7E2FA5 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.185 H 312.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7E2FA5
RGBrgb(126, 47, 165)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(23.6%, 71.5%, 0%, 35.3%)
CIE-LABlab(36.34, 52.82, -48.69)
CIE-LCHlch(36.34, 71.84, 317.33°)
OKLaboklab(47.46% 0.1242 -0.1375)
OKLCHoklch(47.46% 0.185 312.1)
XYZxyz(16.4110, 9.1857, 36.4985)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA5 #56A52F
analogous
#432FA5 #7E2FA5 #A52F91
triadic
#7E2FA5 #A57E2F #2FA57E
tetradic
#7E2FA5 #A5432F #56A52F #2F91A5
square
#7E2FA5 #A5432F #56A52F #2F91A5
split-complementary
#7E2FA5 #91A52F #2FA543
monochromatic
#351446 #5A2175 #7E2FA5 #9F47CB #B876D8

Accessibility & contrast

On white

7.40
#7E2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FA5
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA5#FFFFFF#000000##FFFFFF
##7E2FA51.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2157A2
Tritanopia (blue-blind)
#794867
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2fa5;
/* rgb */ color: rgb(126, 47, 165);
/* oklch */ color: oklch(47.5% 0.185 312.1);
Tailwind
colors: {
  custom: {
    50: '#a76fc0',
    500: '#7e2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa5;
$custom-light: #a76fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa5",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 280.169,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47455,
    "c": 0.18531,
    "h": 312.1
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#7E2FA5
secondary
#8AC070
accent
#DF497A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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