#7E2B99#7E2B99

#7E2B99 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.179 H 316.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7E2B99
RGBrgb(126, 43, 153)
HSLhsl(285, 56%, 38%)
HSVhsv(285, 72%, 60%)
CMYKcmyk(17.6%, 71.9%, 0%, 40%)
CIE-LABlab(34.93, 51.97, -43.71)
CIE-LCHlch(34.93, 67.90, 319.93°)
OKLaboklab(46.19% 0.1297 -0.1229)
OKLCHoklch(46.19% 0.179 316.5)
XYZxyz(15.2170, 8.4639, 30.9629)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B99 #46992B
analogous
#472B99 #7E2B99 #992B7D
triadic
#7E2B99 #997E2B #2B997E
tetradic
#7E2B99 #99472B #46992B #2B7D99
square
#7E2B99 #99472B #46992B #2B7D99
split-complementary
#7E2B99 #7D992B #2B9947
monochromatic
#2F1039 #571E69 #7E2B99 #A53AC8 #BB69D5

Accessibility & contrast

On white

7.80
#7E2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B99
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B99#FFFFFF#000000##FFFFFF
##7E2B991.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#2C5596
Tritanopia (blue-blind)
#7C415F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2b99;
/* rgb */ color: rgb(126, 43, 153);
/* oklch */ color: oklch(46.2% 0.179 316.5);
Tailwind
colors: {
  custom: {
    50: '#a76cb8',
    500: '#7e2b99',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b99;
$custom-light: #a76cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b99",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 285.273,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46192,
    "c": 0.17866,
    "h": 316.5
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#7E2B99
secondary
#7ABC64
accent
#DF486D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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