#7E2D9E#7E2D9E

#7E2D9E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.181 H 314.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7E2D9E
RGBrgb(126, 45, 158)
HSLhsl(283, 56%, 40%)
HSVhsv(283, 72%, 62%)
CMYKcmyk(20.3%, 71.5%, 0%, 38%)
CIE-LABlab(35.56, 52.17, -45.73)
CIE-LCHlch(35.56, 69.38, 318.77°)
OKLaboklab(46.75% 0.1271 -0.1288)
OKLCHoklch(46.75% 0.181 314.6)
XYZxyz(15.7131, 8.7816, 33.2084)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D9E #4D9E2D
analogous
#462D9E #7E2D9E #9E2D85
triadic
#7E2D9E #9E7E2D #2D9E7E
tetradic
#7E2D9E #9E462D #4D9E2D #2D859E
square
#7E2D9E #9E462D #4D9E2D #2D859E
split-complementary
#7E2D9E #859E2D #2D9E46
monochromatic
#32123F #581F6E #7E2D9E #A240C9 #B96FD6

Accessibility & contrast

On white

7.62
#7E2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2D9E
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D9E#FFFFFF#000000##FFFFFF
##7E2D9E1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#28569B
Tritanopia (blue-blind)
#7B4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2d9e;
/* rgb */ color: rgb(126, 45, 158);
/* oklch */ color: oklch(46.7% 0.181 314.6);
Tailwind
colors: {
  custom: {
    50: '#a76dbb',
    500: '#7e2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d9e;
$custom-light: #a76dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d9e",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 283.009,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46747,
    "c": 0.18095,
    "h": 314.6
  },
  "luminance": 0.08781
}

Semantic roles & 50–950 ramp

primary
#7E2D9E
secondary
#81BD69
accent
#DF4973
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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