#7E186E#7E186E

#7E186E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.164 H 335.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7E186E
RGBrgb(126, 24, 110)
HSLhsl(309, 68%, 29%)
HSVhsv(309, 81%, 49%)
CMYKcmyk(0%, 81%, 12.7%, 50.6%)
CIE-LABlab(29.95, 50.98, -24.82)
CIE-LCHlch(29.95, 56.71, 334.04°)
OKLaboklab(41.79% 0.1493 -0.0678)
OKLCHoklch(41.79% 0.164 335.6)
XYZxyz(11.7455, 6.2158, 15.3300)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E186E #187E28
analogous
#5B187E #7E186E #7E183B
triadic
#7E186E #6E7E18 #186E7E
tetradic
#7E186E #7E5B18 #187E28 #183B7E
square
#7E186E #7E5B18 #187E28 #183B7E
split-complementary
#7E186E #3B7E18 #187E5B
monochromatic
#1A0516 #4B0E41 #7E186E #B1229B #D937C0

Accessibility & contrast

On white

9.36
#7E186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E186E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E186E#FFFFFF#000000##FFFFFF
##7E186E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193D70
Deuteranopia (green-blind)
#3F4C6C
Tritanopia (blue-blind)
#852142
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e186e;
/* rgb */ color: rgb(126, 24, 110);
/* oklch */ color: oklch(41.8% 0.164 335.6);
Tailwind
colors: {
  custom: {
    50: '#a76298',
    500: '#7e186e',
    950: '#000000',
  },
}
SCSS
$custom: #7e186e;
$custom-light: #a76298;
$custom-dark: #000000;
JSON
{
  "hex": "#7e186e",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 309.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41794,
    "c": 0.16402,
    "h": 335.6
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

primary
#7E186E
secondary
#3FB251
accent
#EB583D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E186E

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

Preview Lab → · Contrast checker → · Palette generator →

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