#7E186F#7E186F

#7E186F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.165 H 335.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E186F
RGBrgb(126, 24, 111)
HSLhsl(309, 68%, 29%)
HSVhsv(309, 81%, 49%)
CMYKcmyk(0%, 81%, 11.9%, 50.6%)
CIE-LABlab(30.00, 51.14, -25.38)
CIE-LCHlch(30.00, 57.09, 333.61°)
OKLaboklab(41.85% 0.1494 -0.0694)
OKLCHoklch(41.85% 0.165 335.1)
XYZxyz(11.8002, 6.2377, 15.6184)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E186F #187E27
analogous
#5A187E #7E186F #7E183C
triadic
#7E186F #6F7E18 #186F7E
tetradic
#7E186F #7E5A18 #187E27 #183C7E
square
#7E186F #7E5A18 #187E27 #183C7E
split-complementary
#7E186F #3C7E18 #187E5A
monochromatic
#1A0517 #4B0E42 #7E186F #B1229C #D937C1

Accessibility & contrast

On white

9.34
#7E186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E186F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E186F#FFFFFF#000000##FFFFFF
##7E186F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#852243
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e186f;
/* rgb */ color: rgb(126, 24, 111);
/* oklch */ color: oklch(41.9% 0.165 335.1);
Tailwind
colors: {
  custom: {
    50: '#a76298',
    500: '#7e186f',
    950: '#000000',
  },
}
SCSS
$custom: #7e186f;
$custom-light: #a76298;
$custom-dark: #000000;
JSON
{
  "hex": "#7e186f",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 308.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4185,
    "c": 0.16474,
    "h": 335.1
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#7E186F
secondary
#3FB250
accent
#EB573D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E186F

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

Preview Lab → · Contrast checker → · Palette generator →

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