#7E2AB5#7E2AB5

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

Color values

HEX#7E2AB5
RGBrgb(126, 42, 181)
HSLhsl(276, 62%, 44%)
HSVhsv(276, 77%, 71%)
CMYKcmyk(30.4%, 76.8%, 0%, 29%)
CIE-LABlab(36.80, 58.34, -57.50)
CIE-LCHlch(36.80, 81.91, 315.42°)
OKLaboklab(48.15% 0.1263 -0.1634)
OKLCHoklch(48.15% 0.206 307.7)
XYZxyz(17.7709, 9.4280, 44.5907)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB5 #61B52A
analogous
#382AB5 #7E2AB5 #B52AA6
triadic
#7E2AB5 #B57E2A #2AB57E
tetradic
#7E2AB5 #B5382A #61B52A #2AA6B5
square
#7E2AB5 #B5382A #61B52A #2AA6B5
split-complementary
#7E2AB5 #A6B52A #2AB538
monochromatic
#391352 #5B1E83 #7E2AB5 #9D48D4 #B779E0

Accessibility & contrast

On white

7.28
#7E2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB5
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB5#FFFFFF#000000##FFFFFF
##7E2AB51.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#754D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2ab5;
/* rgb */ color: rgb(126, 42, 181);
/* oklch */ color: oklch(48.1% 0.206 307.7);
Tailwind
colors: {
  custom: {
    50: '#a96dcc',
    500: '#7e2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab5;
$custom-light: #a96dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab5",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 276.259,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48145,
    "c": 0.20648,
    "h": 307.7
  },
  "luminance": 0.09428
}

Semantic roles & 50–950 ramp

primary
#7E2AB5
secondary
#95C873
accent
#E54283
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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