#7E2AB0#7E2AB0

#7E2AB0 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.202 H 309.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB0
RGBrgb(126, 42, 176)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 76%, 69%)
CMYKcmyk(28.4%, 76.1%, 0%, 31%)
CIE-LABlab(36.42, 57.25, -55.14)
CIE-LCHlch(36.42, 79.48, 316.07°)
OKLaboklab(47.76% 0.1273 -0.1565)
OKLCHoklch(47.76% 0.202 309.1)
XYZxyz(17.2670, 9.2265, 41.9371)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB0 #5CB02A
analogous
#3B2AB0 #7E2AB0 #B02A9F
triadic
#7E2AB0 #B07E2A #2AB07E
tetradic
#7E2AB0 #B03B2A #5CB02A #2A9FB0
square
#7E2AB0 #B03B2A #5CB02A #2A9FB0
split-complementary
#7E2AB0 #9FB02A #2AB03B
monochromatic
#37124D #5B1E7F #7E2AB0 #9E45D3 #B776DE

Accessibility & contrast

On white

7.38
#7E2AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E2AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB0
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB0#FFFFFF#000000##FFFFFF
##7E2AB01.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#764A6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2ab0;
/* rgb */ color: rgb(126, 42, 176);
/* oklch */ color: oklch(47.8% 0.202 309.1);
Tailwind
colors: {
  custom: {
    50: '#a86dc8',
    500: '#7e2ab0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab0;
$custom-light: #a86dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab0",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 277.612,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4776,
    "c": 0.20171,
    "h": 309.1
  },
  "luminance": 0.09226
}

Semantic roles & 50–950 ramp

primary
#7E2AB0
secondary
#90C670
accent
#E5437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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