#7E127E#7E127E

#7E127E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.181 H 328.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7E127E
RGBrgb(126, 18, 126)
HSLhsl(300, 75%, 28%)
HSVhsv(300, 86%, 49%)
CMYKcmyk(0%, 85.7%, 0%, 50.6%)
CIE-LABlab(30.34, 55.11, -34.36)
CIE-LCHlch(30.34, 64.94, 328.06°)
OKLaboklab(42.37% 0.1539 -0.0954)
OKLCHoklch(42.37% 0.181 328.2)
XYZxyz(12.5862, 6.3756, 20.3023)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E127E #127E12
analogous
#48127E #7E127E #7E1248
triadic
#7E127E #7E7E12 #127E7E
tetradic
#7E127E #7E4812 #127E12 #12487E
square
#7E127E #7E4812 #127E12 #12487E
split-complementary
#7E127E #487E12 #127E48
monochromatic
#1B041B #480A48 #7E127E #B41AB4 #E12AE1

Accessibility & contrast

On white

9.23
#7E127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E127E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E127E#FFFFFF#000000##FFFFFF
##7E127E1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#82274A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e127e;
/* rgb */ color: rgb(126, 18, 126);
/* oklch */ color: oklch(42.4% 0.181 328.2);
Tailwind
colors: {
  custom: {
    50: '#a761a4',
    500: '#7e127e',
    950: '#000000',
  },
}
SCSS
$custom: #7e127e;
$custom-light: #a761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e127e",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42372,
    "c": 0.18108,
    "h": 328.2
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#7E127E
secondary
#38B438
accent
#F23636
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E127E

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

Preview Lab → · Contrast checker → · Palette generator →

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