#7E2DA5#7E2DA5

#7E2DA5 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.188 H 312.3°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7E2DA5
RGBrgb(126, 45, 165)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 73%, 65%)
CMYKcmyk(23.6%, 72.7%, 0%, 35.3%)
CIE-LABlab(36.04, 53.66, -49.17)
CIE-LCHlch(36.04, 72.79, 317.50°)
OKLaboklab(47.24% 0.1262 -0.1389)
OKLCHoklch(47.24% 0.188 312.3)
XYZxyz(16.3329, 9.0295, 36.4725)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DA5 #54A52D
analogous
#422DA5 #7E2DA5 #A52D90
triadic
#7E2DA5 #A57E2D #2DA57E
tetradic
#7E2DA5 #A5422D #54A52D #2D90A5
square
#7E2DA5 #A5422D #54A52D #2D90A5
split-complementary
#7E2DA5 #90A52D #2DA542
monochromatic
#351345 #592075 #7E2DA5 #9F43CC #B873D9

Accessibility & contrast

On white

7.48
#7E2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DA5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DA5#FFFFFF#000000##FFFFFF
##7E2DA51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1F56A2
Tritanopia (blue-blind)
#794766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2da5;
/* rgb */ color: rgb(126, 45, 165);
/* oklch */ color: oklch(47.2% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#a76ec0',
    500: '#7e2da5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2da5;
$custom-light: #a76ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2da5",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 280.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47242,
    "c": 0.18773,
    "h": 312.3
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#7E2DA5
secondary
#88C16D
accent
#E04779
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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