#7E2697#7E2697

#7E2697 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.183 H 317.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E2697
RGBrgb(126, 38, 151)
HSLhsl(287, 60%, 37%)
HSVhsv(287, 75%, 59%)
CMYKcmyk(16.6%, 74.8%, 0%, 40.8%)
CIE-LABlab(34.10, 53.54, -43.82)
CIE-LCHlch(34.10, 69.19, 320.70°)
OKLaboklab(45.56% 0.135 -0.1232)
OKLCHoklch(45.56% 0.183 317.6)
XYZxyz(14.8824, 8.0569, 30.0434)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2697 #3F9726
analogous
#462697 #7E2697 #972677
triadic
#7E2697 #977E26 #26977E
tetradic
#7E2697 #974626 #3F9726 #267797
square
#7E2697 #974626 #3F9726 #267797
split-complementary
#7E2697 #779726 #269746
monochromatic
#2C0D35 #551A66 #7E2697 #A732C8 #BD60D7

Accessibility & contrast

On white

8.04
#7E2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2697
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2697#FFFFFF#000000##FFFFFF
##7E26971.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#7D3D5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2697;
/* rgb */ color: rgb(126, 38, 151);
/* oklch */ color: oklch(45.6% 0.183 317.6);
Tailwind
colors: {
  custom: {
    50: '#a76ab6',
    500: '#7e2697',
    950: '#000000',
  },
}
SCSS
$custom: #7e2697;
$custom-light: #a76ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2697",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 286.726,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.18274,
    "h": 317.6
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7E2697
secondary
#72BC5C
accent
#E34568
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2697

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

Preview Lab → · Contrast checker → · Palette generator →

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