#7E2FA6#7E2FA6

#7E2FA6 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.186 H 311.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2FA6
RGBrgb(126, 47, 166)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24.1%, 71.7%, 0%, 34.9%)
CIE-LABlab(36.41, 53.04, -49.18)
CIE-LCHlch(36.41, 72.33, 317.16°)
OKLaboklab(47.53% 0.124 -0.139)
OKLCHoklch(47.53% 0.186 311.7)
XYZxyz(16.5024, 9.2223, 36.9798)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA6 #57A62F
analogous
#432FA6 #7E2FA6 #A62F93
triadic
#7E2FA6 #A67E2F #2FA67E
tetradic
#7E2FA6 #A6432F #57A62F #2F93A6
square
#7E2FA6 #A6432F #57A62F #2F93A6
split-complementary
#7E2FA6 #93A62F #2FA643
monochromatic
#361447 #5A2176 #7E2FA6 #9F47CB #B877D8

Accessibility & contrast

On white

7.38
#7E2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2FA6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA6#FFFFFF#000000##FFFFFF
##7E2FA61.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2057A3
Tritanopia (blue-blind)
#794967
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2fa6;
/* rgb */ color: rgb(126, 47, 166);
/* oklch */ color: oklch(47.5% 0.186 311.7);
Tailwind
colors: {
  custom: {
    50: '#a76fc1',
    500: '#7e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa6;
$custom-light: #a76fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa6",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 279.832,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47526,
    "c": 0.18628,
    "h": 311.7
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#7E2FA6
secondary
#8BC170
accent
#DF497B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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