#7E2BB6#7E2BB6

#7E2BB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.206 H 307.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7E2BB6
RGBrgb(126, 43, 182)
HSLhsl(276, 62%, 44%)
HSVhsv(276, 76%, 71%)
CMYKcmyk(30.8%, 76.4%, 0%, 28.6%)
CIE-LABlab(37.01, 58.18, -57.75)
CIE-LCHlch(37.01, 81.97, 315.21°)
OKLaboklab(48.32% 0.1252 -0.1641)
OKLCHoklch(48.32% 0.206 307.3)
XYZxyz(17.9098, 9.5410, 45.1450)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BB6 #63B62B
analogous
#382BB6 #7E2BB6 #B62BA9
triadic
#7E2BB6 #B67E2B #2BB67E
tetradic
#7E2BB6 #B6382B #63B62B #2BA9B6
square
#7E2BB6 #B6382B #63B62B #2BA9B6
split-complementary
#7E2BB6 #A9B62B #2BB638
monochromatic
#391453 #5C1F84 #7E2BB6 #9D4AD4 #B77BE0

Accessibility & contrast

On white

7.22
#7E2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2BB6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BB6#FFFFFF#000000##FFFFFF
##7E2BB61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#754D6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2bb6;
/* rgb */ color: rgb(126, 43, 182);
/* oklch */ color: oklch(48.3% 0.206 307.3);
Tailwind
colors: {
  custom: {
    50: '#a96dcd',
    500: '#7e2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bb6;
$custom-light: #a96dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bb6",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 275.827,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48317,
    "c": 0.20641,
    "h": 307.3
  },
  "luminance": 0.09541
}

Semantic roles & 50–950 ramp

primary
#7E2BB6
secondary
#96C875
accent
#E54384
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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