#7E2AB8#7E2AB8

#7E2AB8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.209 H 306.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB8
RGBrgb(126, 42, 184)
HSLhsl(275, 63%, 44%)
HSVhsv(275, 77%, 72%)
CMYKcmyk(31.5%, 77.2%, 0%, 27.8%)
CIE-LABlab(37.03, 59.00, -58.89)
CIE-LCHlch(37.03, 83.37, 315.05°)
OKLaboklab(48.38% 0.1256 -0.1675)
OKLCHoklch(48.38% 0.209 306.9)
XYZxyz(18.0820, 9.5525, 46.2293)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB8 #64B82A
analogous
#372AB8 #7E2AB8 #B82AAB
triadic
#7E2AB8 #B87E2A #2AB87E
tetradic
#7E2AB8 #B8372A #64B82A #2AABB8
square
#7E2AB8 #B8372A #64B82A #2AABB8
split-complementary
#7E2AB8 #ABB82A #2AB837
monochromatic
#3A1354 #5C1F86 #7E2AB8 #9C4AD6 #B77BE1

Accessibility & contrast

On white

7.22
#7E2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E2AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB8
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB8#FFFFFF#000000##FFFFFF
##7E2AB81.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#744E70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2ab8;
/* rgb */ color: rgb(126, 42, 184);
/* oklch */ color: oklch(48.4% 0.209 306.9);
Tailwind
colors: {
  custom: {
    50: '#a96dce',
    500: '#7e2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab8;
$custom-light: #a96dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab8",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 275.493,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4838,
    "c": 0.20935,
    "h": 306.9
  },
  "luminance": 0.09552
}

Semantic roles & 50–950 ramp

primary
#7E2AB8
secondary
#97C975
accent
#E64285
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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