#7E2DB2#7E2DB2

#7E2DB2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.200 H 308.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7E2DB2
RGBrgb(126, 45, 178)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 70%)
CMYKcmyk(29.2%, 74.7%, 0%, 30.2%)
CIE-LABlab(36.98, 56.50, -55.42)
CIE-LCHlch(36.98, 79.14, 315.56°)
OKLaboklab(48.2% 0.1241 -0.1573)
OKLCHoklch(48.2% 0.2 308.3)
XYZxyz(17.5768, 9.5270, 43.0238)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DB2 #61B22D
analogous
#3B2DB2 #7E2DB2 #B22DA3
triadic
#7E2DB2 #B27E2D #2DB27E
tetradic
#7E2DB2 #B23B2D #61B22D #2DA3B2
square
#7E2DB2 #B23B2D #61B22D #2DA3B2
split-complementary
#7E2DB2 #A3B22D #2DB23B
monochromatic
#391450 #5B2181 #7E2DB2 #9D4BD1 #B77CDE

Accessibility & contrast

On white

7.23
#7E2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2DB2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DB2#FFFFFF#000000##FFFFFF
##7E2DB21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#764D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2db2;
/* rgb */ color: rgb(126, 45, 178);
/* oklch */ color: oklch(48.2% 0.200 308.3);
Tailwind
colors: {
  custom: {
    50: '#a86eca',
    500: '#7e2db2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2db2;
$custom-light: #a86eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2db2",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 276.541,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48204,
    "c": 0.20038,
    "h": 308.3
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#7E2DB2
secondary
#95C675
accent
#E34583
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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