#7E2D9D#7E2D9D

#7E2D9D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.180 H 315.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7E2D9D
RGBrgb(126, 45, 157)
HSLhsl(283, 55%, 40%)
HSVhsv(283, 71%, 62%)
CMYKcmyk(19.7%, 71.3%, 0%, 38.4%)
CIE-LABlab(35.49, 51.96, -45.23)
CIE-LCHlch(35.49, 68.89, 318.96°)
OKLaboklab(46.68% 0.1272 -0.1274)
OKLCHoklch(46.68% 0.18 315)
XYZxyz(15.6274, 8.7473, 32.7569)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D9D #4C9D2D
analogous
#462D9D #7E2D9D #9D2D84
triadic
#7E2D9D #9D7E2D #2D9D7E
tetradic
#7E2D9D #9D462D #4C9D2D #2D849D
square
#7E2D9D #9D462D #4C9D2D #2D849D
split-complementary
#7E2D9D #849D2D #2D9D46
monochromatic
#32123E #581F6D #7E2D9D #A23FC8 #B96FD6

Accessibility & contrast

On white

7.64
#7E2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D9D
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D9D#FFFFFF#000000##FFFFFF
##7E2D9D1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#29569A
Tritanopia (blue-blind)
#7B4462
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2d9d;
/* rgb */ color: rgb(126, 45, 157);
/* oklch */ color: oklch(46.7% 0.180 315.0);
Tailwind
colors: {
  custom: {
    50: '#a76dbb',
    500: '#7e2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d9d;
$custom-light: #a76dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d9d",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 283.393,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46678,
    "c": 0.17999,
    "h": 315
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

primary
#7E2D9D
secondary
#80BD69
accent
#DF4972
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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