#7E2DB6#7E2DB6

#7E2DB6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.204 H 307.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB6
RGBrgb(126, 45, 182)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(30.8%, 75.3%, 0%, 28.6%)
CIE-LABlab(37.28, 57.39, -57.30)
CIE-LCHlch(37.28, 81.10, 315.05°)
OKLaboklab(48.51% 0.1234 -0.1628)
OKLCHoklch(48.51% 0.204 307.1)
XYZxyz(17.9843, 9.6900, 45.1698)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB6 #65B62D
analogous
#392DB6 #7E2DB6 #B62DAA
triadic
#7E2DB6 #B67E2D #2DB67E
tetradic
#7E2DB6 #B6392D #65B62D #2DAAB6
square
#7E2DB6 #B6392D #65B62D #2DAAB6
split-complementary
#7E2DB6 #AAB62D #2DB639
monochromatic
#3A1554 #5C2185 #7E2DB6 #9C4DD3 #B87EDF

Accessibility & contrast

On white

7.15
#7E2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB6
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB6#FFFFFF#000000##FFFFFF
##7E2DB61.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#754E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2db6;
/* rgb */ color: rgb(126, 45, 182);
/* oklch */ color: oklch(48.5% 0.204 307.1);
Tailwind
colors: {
  custom: {
    50: '#a96ecd',
    500: '#7e2db6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db6;
$custom-light: #a96ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db6",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 275.474,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4851,
    "c": 0.20429,
    "h": 307.1
  },
  "luminance": 0.0969
}

Semantic roles & 50–950 ramp

primary
#7E2DB6
secondary
#98C877
accent
#E34485
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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