#7E2D9B#7E2D9B

#7E2D9B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.178 H 315.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7E2D9B
RGBrgb(126, 45, 155)
HSLhsl(284, 55%, 39%)
HSVhsv(284, 71%, 61%)
CMYKcmyk(18.7%, 71%, 0%, 39.2%)
CIE-LABlab(35.36, 51.55, -44.23)
CIE-LCHlch(35.36, 67.92, 319.37°)
OKLaboklab(46.54% 0.1274 -0.1244)
OKLCHoklch(46.54% 0.178 315.7)
XYZxyz(15.4580, 8.6795, 31.8650)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D9B #4A9B2D
analogous
#472D9B #7E2D9B #9B2D81
triadic
#7E2D9B #9B7E2D #2D9B7E
tetradic
#7E2D9B #9B472D #4A9B2D #2D819B
square
#7E2D9B #9B472D #4A9B2D #2D819B
split-complementary
#7E2D9B #819B2D #2D9B47
monochromatic
#31113C #571F6C #7E2D9B #A33EC7 #BA6ED5

Accessibility & contrast

On white

7.68
#7E2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D9B
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D9B#FFFFFF#000000##FFFFFF
##7E2D9B1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#2B5598
Tritanopia (blue-blind)
#7C4361
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2d9b;
/* rgb */ color: rgb(126, 45, 155);
/* oklch */ color: oklch(46.5% 0.178 315.7);
Tailwind
colors: {
  custom: {
    50: '#a76db9',
    500: '#7e2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d9b;
$custom-light: #a76db9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d9b",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 284.182,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4654,
    "c": 0.17806,
    "h": 315.7
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#7E2D9B
secondary
#7EBC68
accent
#DE4971
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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