#7E2DB4#7E2DB4

#7E2DB4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.202 H 307.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB4
RGBrgb(126, 45, 180)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(30%, 75%, 0%, 29.4%)
CIE-LABlab(37.13, 56.95, -56.36)
CIE-LCHlch(37.13, 80.12, 315.30°)
OKLaboklab(48.36% 0.1238 -0.1601)
OKLCHoklch(48.36% 0.202 307.7)
XYZxyz(17.7791, 9.6079, 44.0891)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB4 #63B42D
analogous
#3B2DB4 #7E2DB4 #B42DA7
triadic
#7E2DB4 #B47E2D #2DB47E
tetradic
#7E2DB4 #B43B2D #63B42D #2DA7B4
square
#7E2DB4 #B43B2D #63B42D #2DA7B4
split-complementary
#7E2DB4 #A7B42D #2DB43B
monochromatic
#391552 #5C2183 #7E2DB4 #9D4CD2 #B77DDE

Accessibility & contrast

On white

7.19
#7E2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7E2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB4
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB4#FFFFFF#000000##FFFFFF
##7E2DB41.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#754E6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2db4;
/* rgb */ color: rgb(126, 45, 180);
/* oklch */ color: oklch(48.4% 0.202 307.7);
Tailwind
colors: {
  custom: {
    50: '#a86ecb',
    500: '#7e2db4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db4;
$custom-light: #a86ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db4",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 276,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48356,
    "c": 0.20233,
    "h": 307.7
  },
  "luminance": 0.09608
}

Semantic roles & 50–950 ramp

primary
#7E2DB4
secondary
#96C776
accent
#E34584
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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