#7E2FA8#7E2FA8

#7E2FA8 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.188 H 311.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7E2FA8
RGBrgb(126, 47, 168)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 66%)
CMYKcmyk(25%, 72%, 0%, 34.1%)
CIE-LABlab(36.55, 53.47, -50.15)
CIE-LCHlch(36.55, 73.31, 316.83°)
OKLaboklab(47.67% 0.1238 -0.1418)
OKLCHoklch(47.67% 0.188 311.1)
XYZxyz(16.6872, 9.2962, 37.9535)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FA8 #59A82F
analogous
#422FA8 #7E2FA8 #A82F95
triadic
#7E2FA8 #A87E2F #2FA87E
tetradic
#7E2FA8 #A8422F #59A82F #2F95A8
square
#7E2FA8 #A8422F #59A82F #2F95A8
split-complementary
#7E2FA8 #95A82F #2FA842
monochromatic
#361448 #5A2278 #7E2FA8 #9E48CC #B878D9

Accessibility & contrast

On white

7.34
#7E2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7E2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FA8
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FA8#FFFFFF#000000##FFFFFF
##7E2FA81.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1C57A5
Tritanopia (blue-blind)
#794A68
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2fa8;
/* rgb */ color: rgb(126, 47, 168);
/* oklch */ color: oklch(47.7% 0.188 311.1);
Tailwind
colors: {
  custom: {
    50: '#a76fc3',
    500: '#7e2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fa8;
$custom-light: #a76fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fa8",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 279.174,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4767,
    "c": 0.18826,
    "h": 311.1
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#7E2FA8
secondary
#8DC171
accent
#E0487D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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