#7E2B9C#7E2B9C

#7E2B9C is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.182 H 315.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E2B9C
RGBrgb(126, 43, 156)
HSLhsl(284, 57%, 39%)
HSVhsv(284, 72%, 61%)
CMYKcmyk(19.2%, 72.4%, 0%, 38.8%)
CIE-LABlab(35.13, 52.59, -45.21)
CIE-LCHlch(35.13, 69.35, 319.32°)
OKLaboklab(46.4% 0.1294 -0.1273)
OKLCHoklch(46.4% 0.182 315.5)
XYZxyz(15.4679, 8.5642, 32.2843)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B9C #499C2B
analogous
#462B9C #7E2B9C #9C2B82
triadic
#7E2B9C #9C7E2B #2B9C7E
tetradic
#7E2B9C #9C462B #499C2B #2B829C
square
#7E2B9C #9C462B #499C2B #2B829C
split-complementary
#7E2B9C #829C2B #2B9C46
monochromatic
#31113C #571E6C #7E2B9C #A33BC9 #BA6BD6

Accessibility & contrast

On white

7.74
#7E2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E2B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B9C
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B9C#FFFFFF#000000##FFFFFF
##7E2B9C1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#285599
Tritanopia (blue-blind)
#7C4261
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2b9c;
/* rgb */ color: rgb(126, 43, 156);
/* oklch */ color: oklch(46.4% 0.182 315.5);
Tailwind
colors: {
  custom: {
    50: '#a76cba',
    500: '#7e2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b9c;
$custom-light: #a76cba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b9c",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 284.071,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46398,
    "c": 0.18151,
    "h": 315.5
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#7E2B9C
secondary
#7DBD66
accent
#E04870
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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