#7E187A#7E187A

#7E187A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.173 H 329.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7E187A
RGBrgb(126, 24, 122)
HSLhsl(302, 68%, 29%)
HSVhsv(302, 81%, 49%)
CMYKcmyk(0%, 81%, 3.2%, 50.6%)
CIE-LABlab(30.63, 52.90, -31.38)
CIE-LCHlch(30.63, 61.51, 329.32°)
OKLaboklab(42.5% 0.1497 -0.0868)
OKLCHoklch(42.5% 0.173 329.9)
XYZxyz(12.4436, 6.4950, 19.0069)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E187A #187E1C
analogous
#4F187E #7E187A #7E1847
triadic
#7E187A #7A7E18 #187A7E
tetradic
#7E187A #7E4F18 #187E1C #18477E
square
#7E187A #7E4F18 #187E1C #18477E
split-complementary
#7E187A #477E18 #187E4F
monochromatic
#1A0519 #4B0E48 #7E187A #B122AC #D937D3

Accessibility & contrast

On white

9.14
#7E187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E187A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E187A#FFFFFF#000000##FFFFFF
##7E187A1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7D
Deuteranopia (green-blind)
#384D78
Tritanopia (blue-blind)
#832849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e187a;
/* rgb */ color: rgb(126, 24, 122);
/* oklch */ color: oklch(42.5% 0.173 329.9);
Tailwind
colors: {
  custom: {
    50: '#a763a1',
    500: '#7e187a',
    950: '#000000',
  },
}
SCSS
$custom: #7e187a;
$custom-light: #a763a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e187a",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 302.353,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42498,
    "c": 0.17301,
    "h": 329.9
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#7E187A
secondary
#3FB244
accent
#EB443D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E187A

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

Preview Lab → · Contrast checker → · Palette generator →

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