#7E187F#7E187F

#7E187F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.177 H 327.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7E187F
RGBrgb(126, 24, 127)
HSLhsl(299, 68%, 30%)
HSVhsv(299, 81%, 50%)
CMYKcmyk(0.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(30.93, 53.74, -34.05)
CIE-LCHlch(30.93, 63.62, 327.64°)
OKLaboklab(42.81% 0.1495 -0.0945)
OKLCHoklch(42.81% 0.177 327.7)
XYZxyz(12.7614, 6.6221, 20.6806)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E187F #197F18
analogous
#4A187F #7E187F #7F184D
triadic
#7E187F #7F7E18 #187F7E
tetradic
#7E187F #7F4A18 #197F18 #184D7F
square
#7E187F #7F4A18 #197F18 #184D7F
split-complementary
#7E187F #4D7F18 #187F4A
monochromatic
#1A051A #4B0E4C #7E187F #B122B2 #D838D9

Accessibility & contrast

On white

9.04
#7E187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E187F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E187F#FFFFFF#000000##FFFFFF
##7E187F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#822A4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e187f;
/* rgb */ color: rgb(126, 24, 127);
/* oklch */ color: oklch(42.8% 0.177 327.7);
Tailwind
colors: {
  custom: {
    50: '#a763a4',
    500: '#7e187f',
    950: '#000000',
  },
}
SCSS
$custom: #7e187f;
$custom-light: #a763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e187f",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 299.417,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.4281,
    "c": 0.1769,
    "h": 327.7
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#7E187F
secondary
#41B33F
accent
#EB3D3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E187F

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

Preview Lab → · Contrast checker → · Palette generator →

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