#7E2696#7E2696

#7E2696 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.182 H 318.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7E2696
RGBrgb(126, 38, 150)
HSLhsl(287, 60%, 37%)
HSVhsv(287, 75%, 59%)
CMYKcmyk(16%, 74.7%, 0%, 41.2%)
CIE-LABlab(34.03, 53.34, -43.32)
CIE-LCHlch(34.03, 68.72, 320.92°)
OKLaboklab(45.49% 0.1351 -0.1217)
OKLCHoklch(45.49% 0.182 318)
XYZxyz(14.8015, 8.0245, 29.6175)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2696 #3E9626
analogous
#462696 #7E2696 #962676
triadic
#7E2696 #967E26 #26967E
tetradic
#7E2696 #964626 #3E9626 #267696
square
#7E2696 #964626 #3E9626 #267696
split-complementary
#7E2696 #769626 #269646
monochromatic
#2C0D34 #551A65 #7E2696 #A732C7 #BD60D7

Accessibility & contrast

On white

8.06
#7E2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E2696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2696
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2696#FFFFFF#000000##FFFFFF
##7E26961.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#2B5393
Tritanopia (blue-blind)
#7D3D5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2696;
/* rgb */ color: rgb(126, 38, 150);
/* oklch */ color: oklch(45.5% 0.182 318.0);
Tailwind
colors: {
  custom: {
    50: '#a76ab5',
    500: '#7e2696',
    950: '#000000',
  },
}
SCSS
$custom: #7e2696;
$custom-light: #a76ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2696",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 287.143,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45489,
    "c": 0.18184,
    "h": 318
  },
  "luminance": 0.08024
}

Semantic roles & 50–950 ramp

primary
#7E2696
secondary
#70BC5C
accent
#E34567
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2696

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

Preview Lab → · Contrast checker → · Palette generator →

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