#7E2DA7#7E2DA7

#7E2DA7 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.190 H 311.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7E2DA7
RGBrgb(126, 45, 167)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 73%, 65%)
CMYKcmyk(24.6%, 73.1%, 0%, 34.5%)
CIE-LABlab(36.18, 54.10, -50.15)
CIE-LCHlch(36.18, 73.76, 317.17°)
OKLaboklab(47.39% 0.126 -0.1418)
OKLCHoklch(47.39% 0.19 311.6)
XYZxyz(16.5163, 9.1028, 37.4387)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DA7 #56A72D
analogous
#412DA7 #7E2DA7 #A72D93
triadic
#7E2DA7 #A77E2D #2DA77E
tetradic
#7E2DA7 #A7412D #56A72D #2D93A7
square
#7E2DA7 #A7412D #56A72D #2D93A7
split-complementary
#7E2DA7 #93A72D #2DA741
monochromatic
#351347 #5A2077 #7E2DA7 #9F44CD #B875DA

Accessibility & contrast

On white

7.45
#7E2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DA7
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DA7#FFFFFF#000000##FFFFFF
##7E2DA71.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1B57A4
Tritanopia (blue-blind)
#794867
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2da7;
/* rgb */ color: rgb(126, 45, 167);
/* oklch */ color: oklch(47.4% 0.190 311.6);
Tailwind
colors: {
  custom: {
    50: '#a86ec2',
    500: '#7e2da7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2da7;
$custom-light: #a86ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2da7",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 279.836,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47387,
    "c": 0.18967,
    "h": 311.6
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#7E2DA7
secondary
#8AC16E
accent
#E1477B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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