#7E127A#7E127A

#7E127A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.178 H 329.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7E127A
RGBrgb(126, 18, 122)
HSLhsl(302, 75%, 28%)
HSVhsv(302, 86%, 49%)
CMYKcmyk(0%, 85.7%, 3.2%, 50.6%)
CIE-LABlab(30.09, 54.45, -32.23)
CIE-LCHlch(30.09, 63.27, 329.38°)
OKLaboklab(42.12% 0.1541 -0.0892)
OKLCHoklch(42.12% 0.178 329.9)
XYZxyz(12.3333, 6.2744, 18.9701)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E127A #127E16
analogous
#4C127E #7E127A #7E1244
triadic
#7E127A #7A7E12 #127A7E
tetradic
#7E127A #7E4C12 #127E16 #12447E
square
#7E127A #7E4C12 #127E16 #12447E
split-complementary
#7E127A #447E12 #127E4C
monochromatic
#1B041A #480A46 #7E127A #B41AAE #E12ADA

Accessibility & contrast

On white

9.31
#7E127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E127A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E127A#FFFFFF#000000##FFFFFF
##7E127A1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#364C78
Tritanopia (blue-blind)
#832448
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e127a;
/* rgb */ color: rgb(126, 18, 122);
/* oklch */ color: oklch(42.1% 0.178 329.9);
Tailwind
colors: {
  custom: {
    50: '#a761a1',
    500: '#7e127a',
    950: '#000000',
  },
}
SCSS
$custom: #7e127a;
$custom-light: #a761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e127a",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 302.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42118,
    "c": 0.17807,
    "h": 329.9
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#7E127A
secondary
#38B43D
accent
#F23D36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E127A

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

Preview Lab → · Contrast checker → · Palette generator →

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