#7E2FAB#7E2FAB

#7E2FAB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.191 H 310.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7E2FAB
RGBrgb(126, 47, 171)
HSLhsl(278, 57%, 43%)
HSVhsv(278, 73%, 67%)
CMYKcmyk(26.3%, 72.5%, 0%, 32.9%)
CIE-LABlab(36.76, 54.13, -51.60)
CIE-LCHlch(36.76, 74.79, 316.37°)
OKLaboklab(47.89% 0.1234 -0.1461)
OKLCHoklch(47.89% 0.191 310.2)
XYZxyz(16.9699, 9.4093, 39.4424)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FAB #5CAB2F
analogous
#402FAB #7E2FAB #AB2F9A
triadic
#7E2FAB #AB7E2F #2FAB7E
tetradic
#7E2FAB #AB402F #5CAB2F #2F9AAB
square
#7E2FAB #AB402F #5CAB2F #2F9AAB
split-complementary
#7E2FAB #9AAB2F #2FAB40
monochromatic
#37154B #5B227B #7E2FAB #9E4ACD #B77ADA

Accessibility & contrast

On white

7.29
#7E2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7E2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FAB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FAB#FFFFFF#000000##FFFFFF
##7E2FAB1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1658A8
Tritanopia (blue-blind)
#784B6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2fab;
/* rgb */ color: rgb(126, 47, 171);
/* oklch */ color: oklch(47.9% 0.191 310.2);
Tailwind
colors: {
  custom: {
    50: '#a86fc5',
    500: '#7e2fab',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fab;
$custom-light: #a86fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fab",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 278.226,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47888,
    "c": 0.19121,
    "h": 310.2
  },
  "luminance": 0.09409
}

Semantic roles & 50–950 ramp

primary
#7E2FAB
secondary
#90C373
accent
#E0487F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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