#7E2D9C#7E2D9C

#7E2D9C is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.179 H 315.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7E2D9C
RGBrgb(126, 45, 156)
HSLhsl(284, 55%, 39%)
HSVhsv(284, 71%, 61%)
CMYKcmyk(19.2%, 71.2%, 0%, 38.8%)
CIE-LABlab(35.43, 51.75, -44.73)
CIE-LCHlch(35.43, 68.41, 319.16°)
OKLaboklab(46.61% 0.1273 -0.1259)
OKLCHoklch(46.61% 0.179 315.3)
XYZxyz(15.5424, 8.7133, 32.3092)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D9C #4B9C2D
analogous
#472D9C #7E2D9C #9C2D83
triadic
#7E2D9C #9C7E2D #2D9C7E
tetradic
#7E2D9C #9C472D #4B9C2D #2D839C
square
#7E2D9C #9C472D #4B9C2D #2D839C
split-complementary
#7E2D9C #839C2D #2D9C47
monochromatic
#31123D #581F6D #7E2D9C #A33FC8 #B96ED5

Accessibility & contrast

On white

7.66
#7E2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2D9C
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D9C#FFFFFF#000000##FFFFFF
##7E2D9C1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#2A5599
Tritanopia (blue-blind)
#7C4461
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2d9c;
/* rgb */ color: rgb(126, 45, 156);
/* oklch */ color: oklch(46.6% 0.179 315.3);
Tailwind
colors: {
  custom: {
    50: '#a76dba',
    500: '#7e2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d9c;
$custom-light: #a76dba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d9c",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 283.784,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46609,
    "c": 0.17903,
    "h": 315.3
  },
  "luminance": 0.08713
}

Semantic roles & 50–950 ramp

primary
#7E2D9C
secondary
#7FBC68
accent
#DF4972
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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