#7E187D#7E187D

#7E187D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.175 H 328.6°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7E187D
RGBrgb(126, 24, 125)
HSLhsl(301, 68%, 29%)
HSVhsv(301, 81%, 49%)
CMYKcmyk(0%, 81%, 0.8%, 50.6%)
CIE-LABlab(30.81, 53.40, -32.99)
CIE-LCHlch(30.81, 62.77, 328.30°)
OKLaboklab(42.68% 0.1496 -0.0914)
OKLCHoklch(42.68% 0.175 328.6)
XYZxyz(12.6324, 6.5705, 20.0010)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E187D #187E19
analogous
#4C187E #7E187D #7E184A
triadic
#7E187D #7D7E18 #187D7E
tetradic
#7E187D #7E4C18 #187E19 #184A7E
square
#7E187D #7E4C18 #187E19 #184A7E
split-complementary
#7E187D #4A7E18 #187E4C
monochromatic
#1A051A #4B0E4A #7E187D #B122B0 #D937D7

Accessibility & contrast

On white

9.08
#7E187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E187D
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E187D#FFFFFF#000000##FFFFFF
##7E187D1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#82294B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e187d;
/* rgb */ color: rgb(126, 24, 125);
/* oklch */ color: oklch(42.7% 0.175 328.6);
Tailwind
colors: {
  custom: {
    50: '#a763a3',
    500: '#7e187d',
    950: '#000000',
  },
}
SCSS
$custom: #7e187d;
$custom-light: #a763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e187d",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 300.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.17534,
    "h": 328.6
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#7E187D
secondary
#3FB240
accent
#EB3F3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E187D

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

Preview Lab → · Contrast checker → · Palette generator →

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