#7E2DB3#7E2DB3

#7E2DB3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.201 H 308.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB3
RGBrgb(126, 45, 179)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 70%)
CMYKcmyk(29.6%, 74.9%, 0%, 29.8%)
CIE-LABlab(37.05, 56.72, -55.89)
CIE-LCHlch(37.05, 79.63, 315.42°)
OKLaboklab(48.28% 0.124 -0.1587)
OKLCHoklch(48.28% 0.201 308)
XYZxyz(17.6776, 9.5673, 43.5545)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB3 #62B32D
analogous
#3B2DB3 #7E2DB3 #B32DA5
triadic
#7E2DB3 #B37E2D #2DB37E
tetradic
#7E2DB3 #B33B2D #62B32D #2DA5B3
square
#7E2DB3 #B33B2D #62B32D #2DA5B3
split-complementary
#7E2DB3 #A5B32D #2DB33B
monochromatic
#391451 #5C2182 #7E2DB3 #9D4BD2 #B77CDE

Accessibility & contrast

On white

7.21
#7E2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB3#FFFFFF#000000##FFFFFF
##7E2DB31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#754D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2db3;
/* rgb */ color: rgb(126, 45, 179);
/* oklch */ color: oklch(48.3% 0.201 308.0);
Tailwind
colors: {
  custom: {
    50: '#a86ecb',
    500: '#7e2db3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db3;
$custom-light: #a86ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db3",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 276.269,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4828,
    "c": 0.20135,
    "h": 308
  },
  "luminance": 0.09567
}

Semantic roles & 50–950 ramp

primary
#7E2DB3
secondary
#95C775
accent
#E34583
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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