#7E2DB1#7E2DB1

#7E2DB1 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.199 H 308.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB1
RGBrgb(126, 45, 177)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 75%, 69%)
CMYKcmyk(28.8%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.91, 56.28, -54.94)
CIE-LCHlch(36.91, 78.65, 315.69°)
OKLaboklab(48.13% 0.1243 -0.1559)
OKLCHoklch(48.13% 0.199 308.6)
XYZxyz(17.4767, 9.4870, 42.4970)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB1 #60B12D
analogous
#3C2DB1 #7E2DB1 #B12DA2
triadic
#7E2DB1 #B17E2D #2DB17E
tetradic
#7E2DB1 #B13C2D #60B12D #2DA2B1
square
#7E2DB1 #B13C2D #60B12D #2DA2B1
split-complementary
#7E2DB1 #A2B12D #2DB13C
monochromatic
#39144F #5B2180 #7E2DB1 #9D4AD1 #B77BDD

Accessibility & contrast

On white

7.25
#7E2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7E2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB1
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB1#FFFFFF#000000##FFFFFF
##7E2DB11.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0058AE
Tritanopia (blue-blind)
#764C6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2db1;
/* rgb */ color: rgb(126, 45, 177);
/* oklch */ color: oklch(48.1% 0.199 308.6);
Tailwind
colors: {
  custom: {
    50: '#a86ec9',
    500: '#7e2db1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db1;
$custom-light: #a86ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db1",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 276.818,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48128,
    "c": 0.19941,
    "h": 308.6
  },
  "luminance": 0.09487
}

Semantic roles & 50–950 ramp

primary
#7E2DB1
secondary
#94C674
accent
#E34582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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