#7E2BAA#7E2BAA

#7E2BAA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.195 H 310.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7E2BAA
RGBrgb(126, 43, 170)
HSLhsl(279, 60%, 42%)
HSVhsv(279, 75%, 67%)
CMYKcmyk(25.9%, 74.7%, 0%, 33.3%)
CIE-LABlab(36.11, 55.55, -52.06)
CIE-LCHlch(36.11, 76.13, 316.86°)
OKLaboklab(47.41% 0.1275 -0.1474)
OKLCHoklch(47.41% 0.195 310.8)
XYZxyz(16.7224, 9.0661, 38.8914)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BAA #57AA2B
analogous
#3F2BAA #7E2BAA #AA2B96
triadic
#7E2BAA #AA7E2B #2BAA7E
tetradic
#7E2BAA #AA3F2B #57AA2B #2B96AA
square
#7E2BAA #AA3F2B #57AA2B #2B96AA
split-complementary
#7E2BAA #96AA2B #2BAA3F
monochromatic
#361248 #5A1F79 #7E2BAA #9F43CF #B874DC

Accessibility & contrast

On white

7.46
#7E2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BAA
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BAA#FFFFFF#000000##FFFFFF
##7E2BAA1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#1156A7
Tritanopia (blue-blind)
#784869
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2baa;
/* rgb */ color: rgb(126, 43, 170);
/* oklch */ color: oklch(47.4% 0.195 310.8);
Tailwind
colors: {
  custom: {
    50: '#a86dc4',
    500: '#7e2baa',
    950: '#000000',
  },
}
SCSS
$custom: #7e2baa;
$custom-light: #a86dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2baa",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 279.213,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47405,
    "c": 0.19487,
    "h": 310.8
  },
  "luminance": 0.09066
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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