#7E187E#7E187E

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

Color values

HEX#7E187E
RGBrgb(126, 24, 126)
HSLhsl(300, 68%, 29%)
HSVhsv(300, 81%, 49%)
CMYKcmyk(0%, 81%, 0%, 50.6%)
CIE-LABlab(30.87, 53.57, -33.52)
CIE-LCHlch(30.87, 63.19, 327.97°)
OKLaboklab(42.75% 0.1496 -0.093)
OKLCHoklch(42.75% 0.176 328.1)
XYZxyz(12.6966, 6.5962, 20.3391)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E187E #187E18
analogous
#4B187E #7E187E #7E184B
triadic
#7E187E #7E7E18 #187E7E
tetradic
#7E187E #7E4B18 #187E18 #184B7E
square
#7E187E #7E4B18 #187E18 #184B7E
split-complementary
#7E187E #4B7E18 #187E4B
monochromatic
#1A051A #4B0E4B #7E187E #B122B1 #D937D9

Accessibility & contrast

On white

9.06
#7E187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E187E
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E187E#FFFFFF#000000##FFFFFF
##7E187E1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#822A4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e187e;
/* rgb */ color: rgb(126, 24, 126);
/* oklch */ color: oklch(42.7% 0.176 328.1);
Tailwind
colors: {
  custom: {
    50: '#a763a4',
    500: '#7e187e',
    950: '#000000',
  },
}
SCSS
$custom: #7e187e;
$custom-light: #a763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e187e",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42747,
    "c": 0.17611,
    "h": 328.1
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#7E187E
secondary
#3FB23F
accent
#EB3D3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E187E

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

Preview Lab → · Contrast checker → · Palette generator →

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