#7E2B9E#7E2B9E

#7E2B9E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.183 H 314.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7E2B9E
RGBrgb(126, 43, 158)
HSLhsl(283, 57%, 39%)
HSVhsv(283, 73%, 62%)
CMYKcmyk(20.3%, 72.8%, 0%, 38%)
CIE-LABlab(35.27, 53.00, -46.20)
CIE-LCHlch(35.27, 70.31, 318.92°)
OKLaboklab(46.54% 0.1292 -0.1302)
OKLCHoklch(46.54% 0.183 314.8)
XYZxyz(15.6386, 8.6325, 33.1836)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B9E #4B9E2B
analogous
#442B9E #7E2B9E #9E2B85
triadic
#7E2B9E #9E7E2B #2B9E7E
tetradic
#7E2B9E #9E442B #4B9E2B #2B859E
square
#7E2B9E #9E442B #4B9E2B #2B859E
split-complementary
#7E2B9E #859E2B #2B9E44
monochromatic
#31113E #581E6E #7E2B9E #A33CCA #B96CD7

Accessibility & contrast

On white

7.70
#7E2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B9E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B9E#FFFFFF#000000##FFFFFF
##7E2B9E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#26559B
Tritanopia (blue-blind)
#7B4362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2b9e;
/* rgb */ color: rgb(126, 43, 158);
/* oklch */ color: oklch(46.5% 0.183 314.8);
Tailwind
colors: {
  custom: {
    50: '#a76cbb',
    500: '#7e2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b9e;
$custom-light: #a76cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b9e",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 283.304,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46538,
    "c": 0.1834,
    "h": 314.8
  },
  "luminance": 0.08632
}

Semantic roles & 50–950 ramp

primary
#7E2B9E
secondary
#7FBE67
accent
#E04772
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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