#7E2DB9#7E2DB9

#7E2DB9 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.207 H 306.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB9
RGBrgb(126, 45, 185)
HSLhsl(275, 61%, 45%)
HSVhsv(275, 76%, 73%)
CMYKcmyk(31.9%, 75.7%, 0%, 27.5%)
CIE-LABlab(37.51, 58.06, -58.70)
CIE-LCHlch(37.51, 82.57, 314.69°)
OKLaboklab(48.74% 0.1228 -0.1669)
OKLCHoklch(48.74% 0.207 306.3)
XYZxyz(18.2976, 9.8154, 46.8201)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB9 #68B92D
analogous
#382DB9 #7E2DB9 #B92DAE
triadic
#7E2DB9 #B97E2D #2DB97E
tetradic
#7E2DB9 #B9382D #68B92D #2DAEB9
square
#7E2DB9 #B9382D #68B92D #2DAEB9
split-complementary
#7E2DB9 #AEB92D #2DB938
monochromatic
#3B1557 #5C2188 #7E2DB9 #9C4FD4 #B880E0

Accessibility & contrast

On white

7.09
#7E2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7E2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB9
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB9#FFFFFF#000000##FFFFFF
##7E2DB91.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#745071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2db9;
/* rgb */ color: rgb(126, 45, 185);
/* oklch */ color: oklch(48.7% 0.207 306.3);
Tailwind
colors: {
  custom: {
    50: '#a96ecf',
    500: '#7e2db9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db9;
$custom-light: #a96ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db9",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 274.714,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48743,
    "c": 0.20722,
    "h": 306.3
  },
  "luminance": 0.09815
}

Semantic roles & 50–950 ramp

primary
#7E2DB9
secondary
#9BC979
accent
#E44487
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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