#7E2FA7#7E2FA7

#7E2FA7 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.6% C 0.187 H 311.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7E2FA7
RGBrgb(126, 47, 167)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24.6%, 71.9%, 0%, 34.5%)
CIE-LABlab(36.48, 53.25, -49.67)
CIE-LCHlch(36.48, 72.82, 317.00°)
OKLaboklab(47.6% 0.1239 -0.1404)
OKLCHoklch(47.6% 0.187 311.4)
XYZxyz(16.5944, 9.2591, 37.4647)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA7 #58A72F
analogous
#422FA7 #7E2FA7 #A72F94
triadic
#7E2FA7 #A77E2F #2FA77E
tetradic
#7E2FA7 #A7422F #58A72F #2F94A7
square
#7E2FA7 #A7422F #58A72F #2F94A7
split-complementary
#7E2FA7 #94A72F #2FA742
monochromatic
#361447 #5A2277 #7E2FA7 #9E48CB #B878D9

Accessibility & contrast

On white

7.36
#7E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FA7
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA7#FFFFFF#000000##FFFFFF
##7E2FA71.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#1E57A4
Tritanopia (blue-blind)
#794968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2fa7;
/* rgb */ color: rgb(126, 47, 167);
/* oklch */ color: oklch(47.6% 0.187 311.4);
Tailwind
colors: {
  custom: {
    50: '#a76fc2',
    500: '#7e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa7;
$custom-light: #a76fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa7",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 279.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47598,
    "c": 0.18727,
    "h": 311.4
  },
  "luminance": 0.09259
}

Semantic roles & 50–950 ramp

primary
#7E2FA7
secondary
#8CC171
accent
#DF487C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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