#7E2DBE#7E2DBE

#7E2DBE is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.212 H 305.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2DBE
RGBrgb(126, 45, 190)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 76%, 75%)
CMYKcmyk(33.7%, 76.3%, 0%, 25.5%)
CIE-LABlab(37.90, 59.19, -61.01)
CIE-LCHlch(37.90, 85.01, 314.13°)
OKLaboklab(49.14% 0.1217 -0.1737)
OKLCHoklch(49.14% 0.212 305)
XYZxyz(18.8347, 10.0302, 49.6490)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DBE #6DBE2D
analogous
#352DBE #7E2DBE #BE2DB5
triadic
#7E2DBE #BE7E2D #2DBE7E
tetradic
#7E2DBE #BE352D #6DBE2D #2DB5BE
square
#7E2DBE #BE352D #6DBE2D #2DB5BE
split-complementary
#7E2DBE #B5BE2D #2DBE35
monochromatic
#3C165B #5D218D #7E2DBE #9C52D6 #B884E2

Accessibility & contrast

On white

6.99
#7E2DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7E2DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DBE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DBE#FFFFFF#000000##FFFFFF
##7E2DBE1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#725274
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2dbe;
/* rgb */ color: rgb(126, 45, 190);
/* oklch */ color: oklch(49.1% 0.212 305.0);
Tailwind
colors: {
  custom: {
    50: '#a96fd3',
    500: '#7e2dbe',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dbe;
$custom-light: #a96fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dbe",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 273.517,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49136,
    "c": 0.2121,
    "h": 305
  },
  "luminance": 0.1003
}

Semantic roles & 50–950 ramp

primary
#7E2DBE
secondary
#9FCB7C
accent
#E5438A
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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