#7E1988#7E1988

#7E1988 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.183 H 323.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E1988
RGBrgb(126, 25, 136)
HSLhsl(295, 69%, 32%)
HSVhsv(295, 82%, 53%)
CMYKcmyk(7.4%, 81.6%, 0%, 46.7%)
CIE-LABlab(31.60, 55.03, -38.60)
CIE-LCHlch(31.60, 67.22, 324.95°)
OKLaboklab(43.47% 0.1481 -0.1078)
OKLCHoklch(43.47% 0.183 323.9)
XYZxyz(13.3954, 6.9093, 23.9159)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1988 #238819
analogous
#471988 #7E1988 #88195B
triadic
#7E1988 #887E19 #19887E
tetradic
#7E1988 #884719 #238819 #195B88
square
#7E1988 #884719 #238819 #195B88
split-complementary
#7E1988 #5B8819 #198847
monochromatic
#1E0621 #4E0F54 #7E1988 #AE23BC #CE40DC

Accessibility & contrast

On white

8.82
#7E1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1988
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1988#FFFFFF#000000##FFFFFF
##7E19881.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#2F4E86
Tritanopia (blue-blind)
#803051
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1988;
/* rgb */ color: rgb(126, 25, 136);
/* oklch */ color: oklch(43.5% 0.183 323.9);
Tailwind
colors: {
  custom: {
    50: '#a764ab',
    500: '#7e1988',
    950: '#000000',
  },
}
SCSS
$custom: #7e1988;
$custom-light: #a764ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1988",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 294.595,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43467,
    "c": 0.18318,
    "h": 323.9
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#7E1988
secondary
#4CBB41
accent
#EC3C4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1988

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

Preview Lab → · Contrast checker → · Palette generator →

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