#7E2688#7E2688

#7E2688 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.169 H 323.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7E2688
RGBrgb(126, 38, 136)
HSLhsl(294, 56%, 34%)
HSVhsv(294, 72%, 53%)
CMYKcmyk(7.4%, 72.1%, 0%, 46.7%)
CIE-LABlab(33.14, 50.63, -36.15)
CIE-LCHlch(33.14, 62.21, 324.47°)
OKLaboklab(44.56% 0.136 -0.1008)
OKLCHoklch(44.56% 0.169 323.5)
XYZxyz(13.7408, 7.6002, 24.0310)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2688 #308826
analogous
#4D2688 #7E2688 #882661
triadic
#7E2688 #887E26 #26887E
tetradic
#7E2688 #884D26 #308826 #266188
square
#7E2688 #884D26 #308826 #266188
split-complementary
#7E2688 #618826 #26884D
monochromatic
#250B28 #521958 #7E2688 #AA33B8 #C458D0

Accessibility & contrast

On white

8.33
#7E2688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2688
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2688#FFFFFF#000000##FFFFFF
##7E26881.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06478B
Deuteranopia (green-blind)
#365186
Tritanopia (blue-blind)
#803754
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2688;
/* rgb */ color: rgb(126, 38, 136);
/* oklch */ color: oklch(44.6% 0.169 323.5);
Tailwind
colors: {
  custom: {
    50: '#a769ab',
    500: '#7e2688',
    950: '#000000',
  },
}
SCSS
$custom: #7e2688;
$custom-light: #a769ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2688",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 293.878,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44561,
    "c": 0.16928,
    "h": 323.5
  },
  "luminance": 0.07599
}

Semantic roles & 50–950 ramp

primary
#7E2688
secondary
#5FB555
accent
#E04858
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2688

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

Preview Lab → · Contrast checker → · Palette generator →

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