#7E2BAB#7E2BAB

#7E2BAB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.196 H 310.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7E2BAB
RGBrgb(126, 43, 171)
HSLhsl(279, 60%, 42%)
HSVhsv(279, 75%, 67%)
CMYKcmyk(26.3%, 74.9%, 0%, 32.9%)
CIE-LABlab(36.18, 55.77, -52.54)
CIE-LCHlch(36.18, 76.62, 316.71°)
OKLaboklab(47.48% 0.1273 -0.1488)
OKLCHoklch(47.48% 0.196 310.5)
XYZxyz(16.8173, 9.1040, 39.3915)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BAB #58AB2B
analogous
#3E2BAB #7E2BAB #AB2B98
triadic
#7E2BAB #AB7E2B #2BAB7E
tetradic
#7E2BAB #AB3E2B #58AB2B #2B98AB
square
#7E2BAB #AB3E2B #58AB2B #2B98AB
split-complementary
#7E2BAB #98AB2B #2BAB3E
monochromatic
#361249 #5A1F7A #7E2BAB #9E43D0 #B874DC

Accessibility & contrast

On white

7.44
#7E2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BAB
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BAB#FFFFFF#000000##FFFFFF
##7E2BAB1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0F56A8
Tritanopia (blue-blind)
#784969
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2bab;
/* rgb */ color: rgb(126, 43, 171);
/* oklch */ color: oklch(47.5% 0.196 310.5);
Tailwind
colors: {
  custom: {
    50: '#a86dc5',
    500: '#7e2bab',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bab;
$custom-light: #a86dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bab",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 278.906,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47479,
    "c": 0.19583,
    "h": 310.5
  },
  "luminance": 0.09104
}

Semantic roles & 50–950 ramp

primary
#7E2BAB
secondary
#8CC46E
accent
#E3457C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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