#7E2FA0#7E2FA0

#7E2FA0 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.180 H 313.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2FA0
RGBrgb(126, 47, 160)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 63%)
CMYKcmyk(21.2%, 70.6%, 0%, 37.3%)
CIE-LABlab(36.00, 51.74, -46.23)
CIE-LCHlch(36.00, 69.39, 318.22°)
OKLaboklab(47.1% 0.1247 -0.1303)
OKLCHoklch(47.1% 0.18 313.7)
XYZxyz(15.9648, 9.0072, 34.1485)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA0 #51A02F
analogous
#462FA0 #7E2FA0 #A02F89
triadic
#7E2FA0 #A07E2F #2FA07E
tetradic
#7E2FA0 #A0462F #51A02F #2F89A0
square
#7E2FA0 #A0462F #51A02F #2F89A0
split-complementary
#7E2FA0 #89A02F #2FA046
monochromatic
#331341 #592171 #7E2FA0 #A044C8 #B873D6

Accessibility & contrast

On white

7.50
#7E2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FA0
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA0#FFFFFF#000000##FFFFFF
##7E2FA01.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#28579D
Tritanopia (blue-blind)
#7B4664
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2fa0;
/* rgb */ color: rgb(126, 47, 160);
/* oklch */ color: oklch(47.1% 0.180 313.7);
Tailwind
colors: {
  custom: {
    50: '#a76ebd',
    500: '#7e2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa0;
$custom-light: #a76ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa0",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 281.947,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47103,
    "c": 0.18038,
    "h": 313.7
  },
  "luminance": 0.09007
}

Semantic roles & 50–950 ramp

primary
#7E2FA0
secondary
#85BE6D
accent
#DE4A76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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