#7E2DA8#7E2DA8

#7E2DA8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.191 H 311.3°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E2DA8
RGBrgb(126, 45, 168)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(25%, 73.2%, 0%, 34.1%)
CIE-LABlab(36.25, 54.31, -50.63)
CIE-LCHlch(36.25, 74.25, 317.01°)
OKLaboklab(47.46% 0.1258 -0.1432)
OKLCHoklch(47.46% 0.191 311.3)
XYZxyz(16.6091, 9.1400, 37.9274)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DA8 #57A82D
analogous
#412DA8 #7E2DA8 #A82D95
triadic
#7E2DA8 #A87E2D #2DA87E
tetradic
#7E2DA8 #A8412D #57A82D #2D95A8
square
#7E2DA8 #A8412D #57A82D #2D95A8
split-complementary
#7E2DA8 #95A82D #2DA841
monochromatic
#361347 #5A2078 #7E2DA8 #9F45CD #B875DA

Accessibility & contrast

On white

7.43
#7E2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DA8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DA8#FFFFFF#000000##FFFFFF
##7E2DA81.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1957A5
Tritanopia (blue-blind)
#794968
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2da8;
/* rgb */ color: rgb(126, 45, 168);
/* oklch */ color: oklch(47.5% 0.191 311.3);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7e2da8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2da8;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2da8",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 279.512,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47459,
    "c": 0.19064,
    "h": 311.3
  },
  "luminance": 0.0914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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