#7E2AA2#7E2AA2

#7E2AA2 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.188 H 313.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7E2AA2
RGBrgb(126, 42, 162)
HSLhsl(282, 59%, 40%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22.2%, 74.1%, 0%, 36.5%)
CIE-LABlab(35.40, 54.25, -48.40)
CIE-LCHlch(35.40, 72.70, 318.26°)
OKLaboklab(46.72% 0.1297 -0.1367)
OKLCHoklch(46.72% 0.188 313.5)
XYZxyz(15.9526, 8.7007, 35.0145)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AA2 #4EA22A
analogous
#422AA2 #7E2AA2 #A22A8A
triadic
#7E2AA2 #A27E2A #2AA27E
tetradic
#7E2AA2 #A2422A #4EA22A #2A8AA2
square
#7E2AA2 #A2422A #4EA22A #2A8AA2
split-complementary
#7E2AA2 #8AA22A #2AA242
monochromatic
#321141 #581D71 #7E2AA2 #A13DCD #B96DD9

Accessibility & contrast

On white

7.66
#7E2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AA2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AA2#FFFFFF#000000##FFFFFF
##7E2AA21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#20559F
Tritanopia (blue-blind)
#7A4464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2aa2;
/* rgb */ color: rgb(126, 42, 162);
/* oklch */ color: oklch(46.7% 0.188 313.5);
Tailwind
colors: {
  custom: {
    50: '#a76cbe',
    500: '#7e2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aa2;
$custom-light: #a76cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aa2",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 282,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.18838,
    "h": 313.5
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#7E2AA2
secondary
#82C068
accent
#E24675
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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