#7E2DB5#7E2DB5

#7E2DB5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.203 H 307.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB5
RGBrgb(126, 45, 181)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(30.4%, 75.1%, 0%, 29%)
CIE-LABlab(37.20, 57.17, -56.83)
CIE-LCHlch(37.20, 80.61, 315.17°)
OKLaboklab(48.43% 0.1236 -0.1614)
OKLCHoklch(48.43% 0.203 307.4)
XYZxyz(17.8813, 9.6488, 44.6275)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB5 #64B52D
analogous
#3A2DB5 #7E2DB5 #B52DA8
triadic
#7E2DB5 #B57E2D #2DB57E
tetradic
#7E2DB5 #B53A2D #64B52D #2DA8B5
square
#7E2DB5 #B53A2D #64B52D #2DA8B5
split-complementary
#7E2DB5 #A8B52D #2DB53A
monochromatic
#3A1553 #5C2184 #7E2DB5 #9C4DD3 #B77EDF

Accessibility & contrast

On white

7.17
#7E2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7E2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DB5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB5#FFFFFF#000000##FFFFFF
##7E2DB51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#754E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2db5;
/* rgb */ color: rgb(126, 45, 181);
/* oklch */ color: oklch(48.4% 0.203 307.4);
Tailwind
colors: {
  custom: {
    50: '#a86ecc',
    500: '#7e2db5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db5;
$custom-light: #a86ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db5",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 275.735,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48433,
    "c": 0.20331,
    "h": 307.4
  },
  "luminance": 0.09649
}

Semantic roles & 50–950 ramp

primary
#7E2DB5
secondary
#97C776
accent
#E34485
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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