#7E2BA3#7E2BA3

#7E2BA3 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.188 H 313.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7E2BA3
RGBrgb(126, 43, 163)
HSLhsl(282, 58%, 40%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22.7%, 73.6%, 0%, 36.1%)
CIE-LABlab(35.61, 54.06, -48.66)
CIE-LCHlch(35.61, 72.73, 318.01°)
OKLaboklab(46.89% 0.1285 -0.1374)
OKLCHoklch(46.89% 0.188 313.1)
XYZxyz(16.0778, 8.8082, 35.4965)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BA3 #50A32B
analogous
#422BA3 #7E2BA3 #A32B8C
triadic
#7E2BA3 #A37E2B #2BA37E
tetradic
#7E2BA3 #A3422B #50A32B #2B8CA3
square
#7E2BA3 #A3422B #50A32B #2B8CA3
split-complementary
#7E2BA3 #8CA32B #2BA342
monochromatic
#331142 #591E73 #7E2BA3 #A13FCC #B86FD9

Accessibility & contrast

On white

7.60
#7E2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BA3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BA3#FFFFFF#000000##FFFFFF
##7E2BA31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1F56A0
Tritanopia (blue-blind)
#7A4565
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ba3;
/* rgb */ color: rgb(126, 43, 163);
/* oklch */ color: oklch(46.9% 0.188 313.1);
Tailwind
colors: {
  custom: {
    50: '#a76dbf',
    500: '#7e2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ba3;
$custom-light: #a76dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ba3",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 281.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46893,
    "c": 0.18816,
    "h": 313.1
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#7E2BA3
secondary
#84C06A
accent
#E14676
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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