#7E2D9F#7E2D9F

#7E2D9F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.182 H 314.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7E2D9F
RGBrgb(126, 45, 159)
HSLhsl(283, 56%, 40%)
HSVhsv(283, 72%, 62%)
CMYKcmyk(20.8%, 71.7%, 0%, 37.6%)
CIE-LABlab(35.63, 52.39, -46.22)
CIE-LCHlch(35.63, 69.86, 318.58°)
OKLaboklab(46.82% 0.127 -0.1303)
OKLCHoklch(46.82% 0.182 314.3)
XYZxyz(15.7995, 8.8161, 33.6636)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D9F #4E9F2D
analogous
#452D9F #7E2D9F #9F2D87
triadic
#7E2D9F #9F7E2D #2D9F7E
tetradic
#7E2D9F #9F452D #4E9F2D #2D879F
square
#7E2D9F #9F452D #4E9F2D #2D879F
split-complementary
#7E2D9F #879F2D #2D9F45
monochromatic
#321240 #58206F #7E2D9F #A140C9 #B970D6

Accessibility & contrast

On white

7.60
#7E2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D9F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D9F#FFFFFF#000000##FFFFFF
##7E2D9F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#27569C
Tritanopia (blue-blind)
#7B4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2d9f;
/* rgb */ color: rgb(126, 45, 159);
/* oklch */ color: oklch(46.8% 0.182 314.3);
Tailwind
colors: {
  custom: {
    50: '#a76dbc',
    500: '#7e2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d9f;
$custom-light: #a76dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d9f",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 282.632,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.46817,
    "c": 0.18192,
    "h": 314.3
  },
  "luminance": 0.08816
}

Semantic roles & 50–950 ramp

primary
#7E2D9F
secondary
#82BE6A
accent
#DF4974
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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