#7E2DB8#7E2DB8

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

Color values

HEX#7E2DB8
RGBrgb(126, 45, 184)
HSLhsl(275, 61%, 45%)
HSVhsv(275, 76%, 72%)
CMYKcmyk(31.5%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.43, 57.84, -58.23)
CIE-LCHlch(37.43, 82.08, 314.80°)
OKLaboklab(48.67% 0.123 -0.1656)
OKLCHoklch(48.67% 0.206 306.6)
XYZxyz(18.1924, 9.7733, 46.2661)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB8 #67B82D
analogous
#382DB8 #7E2DB8 #B82DAD
triadic
#7E2DB8 #B87E2D #2DB87E
tetradic
#7E2DB8 #B8382D #67B82D #2DADB8
square
#7E2DB8 #B8382D #67B82D #2DADB8
split-complementary
#7E2DB8 #ADB82D #2DB838
monochromatic
#3B1556 #5C2187 #7E2DB8 #9C4ED4 #B880E0

Accessibility & contrast

On white

7.11
#7E2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7E2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB8#FFFFFF#000000##FFFFFF
##7E2DB81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#744F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2db8;
/* rgb */ color: rgb(126, 45, 184);
/* oklch */ color: oklch(48.7% 0.206 306.6);
Tailwind
colors: {
  custom: {
    50: '#a96ece',
    500: '#7e2db8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db8;
$custom-light: #a96ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db8",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 274.964,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48665,
    "c": 0.20624,
    "h": 306.6
  },
  "luminance": 0.09773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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