#7E168F#7E168F

#7E168F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.191 H 321.3°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7E168F
RGBrgb(126, 22, 143)
HSLhsl(292, 73%, 32%)
HSVhsv(292, 85%, 56%)
CMYKcmyk(11.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(31.79, 57.10, -42.63)
CIE-LCHlch(31.79, 71.26, 323.26°)
OKLaboklab(43.75% 0.1494 -0.1196)
OKLCHoklch(43.75% 0.191 321.3)
XYZxyz(13.8485, 6.9934, 26.6017)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E168F #278F16
analogous
#41168F #7E168F #8F1664
triadic
#7E168F #8F7E16 #168F7E
tetradic
#7E168F #8F4116 #278F16 #16648F
square
#7E168F #8F4116 #278F16 #16648F
split-complementary
#7E168F #648F16 #168F41
monochromatic
#210625 #4F0E5A #7E168F #AD1EC4 #CA3EE1

Accessibility & contrast

On white

8.76
#7E168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E168F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E168F#FFFFFF#000000##FFFFFF
##7E168F1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#284E8C
Tritanopia (blue-blind)
#7F3255
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e168f;
/* rgb */ color: rgb(126, 22, 143);
/* oklch */ color: oklch(43.8% 0.191 321.3);
Tailwind
colors: {
  custom: {
    50: '#a763b0',
    500: '#7e168f',
    950: '#000000',
  },
}
SCSS
$custom: #7e168f;
$custom-light: #a763b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e168f",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 291.57,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43753,
    "c": 0.19137,
    "h": 321.3
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

primary
#7E168F
secondary
#52C13F
accent
#F03852
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E168F

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

Preview Lab → · Contrast checker → · Palette generator →

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