#7E2EB4#7E2EB4

#7E2EB4 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.201 H 307.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB4
RGBrgb(126, 46, 180)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(30%, 74.4%, 0%, 29.4%)
CIE-LABlab(37.27, 56.54, -56.13)
CIE-LCHlch(37.27, 79.67, 315.21°)
OKLaboklab(48.46% 0.1228 -0.1594)
OKLCHoklch(48.46% 0.201 307.6)
XYZxyz(17.8177, 9.6851, 44.1019)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB4 #64B42E
analogous
#3B2EB4 #7E2EB4 #B42EA7
triadic
#7E2EB4 #B47E2E #2EB47E
tetradic
#7E2EB4 #B43B2E #64B42E #2EA7B4
square
#7E2EB4 #B43B2E #64B42E #2EA7B4
split-complementary
#7E2EB4 #A7B42E #2EB43B
monochromatic
#3A1553 #5C2283 #7E2EB4 #9C4ED2 #B77EDE

Accessibility & contrast

On white

7.15
#7E2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB4#FFFFFF#000000##FFFFFF
##7E2EB41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2eb4;
/* rgb */ color: rgb(126, 46, 180);
/* oklch */ color: oklch(48.5% 0.201 307.6);
Tailwind
colors: {
  custom: {
    50: '#a86fcb',
    500: '#7e2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb4;
$custom-light: #a86fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb4",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 275.821,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48457,
    "c": 0.20124,
    "h": 307.6
  },
  "luminance": 0.09685
}

Semantic roles & 50–950 ramp

primary
#7E2EB4
secondary
#97C777
accent
#E24585
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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