#7E2AB4#7E2AB4

#7E2AB4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.206 H 308.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB4
RGBrgb(126, 42, 180)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(30%, 76.7%, 0%, 29.4%)
CIE-LABlab(36.72, 58.12, -57.03)
CIE-LCHlch(36.72, 81.43, 315.54°)
OKLaboklab(48.07% 0.1265 -0.162)
OKLCHoklch(48.07% 0.206 308)
XYZxyz(17.6686, 9.3871, 44.0523)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB4 #60B42A
analogous
#392AB4 #7E2AB4 #B42AA5
triadic
#7E2AB4 #B47E2A #2AB47E
tetradic
#7E2AB4 #B4392A #60B42A #2AA5B4
square
#7E2AB4 #B4392A #60B42A #2AA5B4
split-complementary
#7E2AB4 #A5B42A #2AB439
monochromatic
#391351 #5B1E82 #7E2AB4 #9D47D4 #B779E0

Accessibility & contrast

On white

7.30
#7E2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2AB4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB4#FFFFFF#000000##FFFFFF
##7E2AB41.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#754C6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2ab4;
/* rgb */ color: rgb(126, 42, 180);
/* oklch */ color: oklch(48.1% 0.206 308.0);
Tailwind
colors: {
  custom: {
    50: '#a96dcb',
    500: '#7e2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab4;
$custom-light: #a96dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab4",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 276.522,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48067,
    "c": 0.20553,
    "h": 308
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

primary
#7E2AB4
secondary
#94C872
accent
#E54382
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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