#7E2388#7E2388

#7E2388 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.173 H 323.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7E2388
RGBrgb(126, 35, 136)
HSLhsl(294, 59%, 34%)
HSVhsv(294, 74%, 53%)
CMYKcmyk(7.4%, 74.3%, 0%, 46.7%)
CIE-LABlab(32.74, 51.76, -36.79)
CIE-LCHlch(32.74, 63.50, 324.60°)
OKLaboklab(44.28% 0.1391 -0.1026)
OKLCHoklch(44.28% 0.173 323.6)
XYZxyz(13.6487, 7.4161, 24.0003)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2388 #2D8823
analogous
#4B2388 #7E2388 #88235F
triadic
#7E2388 #887E23 #23887E
tetradic
#7E2388 #884B23 #2D8823 #235F88
square
#7E2388 #884B23 #2D8823 #235F88
split-complementary
#7E2388 #5F8823 #23884B
monochromatic
#240A27 #511657 #7E2388 #AB30B9 #C653D3

Accessibility & contrast

On white

8.46
#7E2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2388
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2388#FFFFFF#000000##FFFFFF
##7E23881.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#355186
Tritanopia (blue-blind)
#803553
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2388;
/* rgb */ color: rgb(126, 35, 136);
/* oklch */ color: oklch(44.3% 0.173 323.6);
Tailwind
colors: {
  custom: {
    50: '#a768ab',
    500: '#7e2388',
    950: '#000000',
  },
}
SCSS
$custom: #7e2388;
$custom-light: #a768ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2388",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 294.059,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44275,
    "c": 0.17287,
    "h": 323.6
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#7E2388
secondary
#5AB750
accent
#E24655
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2388

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

Preview Lab → · Contrast checker → · Palette generator →

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