#7E2BA7#7E2BA7

#7E2BA7 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.192 H 311.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7E2BA7
RGBrgb(126, 43, 167)
HSLhsl(280, 59%, 41%)
HSVhsv(280, 74%, 65%)
CMYKcmyk(24.6%, 74.3%, 0%, 34.5%)
CIE-LABlab(35.90, 54.91, -50.61)
CIE-LCHlch(35.90, 74.67, 317.33°)
OKLaboklab(47.18% 0.1279 -0.1431)
OKLCHoklch(47.18% 0.192 311.8)
XYZxyz(16.4418, 8.9538, 37.4139)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BA7 #54A72B
analogous
#402BA7 #7E2BA7 #A72B92
triadic
#7E2BA7 #A77E2B #2BA77E
tetradic
#7E2BA7 #A7402B #54A72B #2B92A7
square
#7E2BA7 #A7402B #54A72B #2B92A7
split-complementary
#7E2BA7 #92A72B #2BA740
monochromatic
#351246 #591E76 #7E2BA7 #9F41CE #B872DB

Accessibility & contrast

On white

7.53
#7E2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BA7
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BA7#FFFFFF#000000##FFFFFF
##7E2BA71.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#1856A4
Tritanopia (blue-blind)
#794767
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ba7;
/* rgb */ color: rgb(126, 43, 167);
/* oklch */ color: oklch(47.2% 0.192 311.8);
Tailwind
colors: {
  custom: {
    50: '#a86dc2',
    500: '#7e2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ba7;
$custom-light: #a86dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ba7",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 280.161,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47184,
    "c": 0.19199,
    "h": 311.8
  },
  "luminance": 0.08953
}

Semantic roles & 50–950 ramp

primary
#7E2BA7
secondary
#88C26C
accent
#E24679
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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