#7E127D#7E127D

#7E127D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.3% C 0.180 H 328.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7E127D
RGBrgb(126, 18, 125)
HSLhsl(301, 75%, 28%)
HSVhsv(301, 86%, 49%)
CMYKcmyk(0%, 85.7%, 0.8%, 50.6%)
CIE-LABlab(30.28, 54.94, -33.83)
CIE-LCHlch(30.28, 64.52, 328.38°)
OKLaboklab(42.31% 0.154 -0.0939)
OKLCHoklch(42.31% 0.18 328.6)
XYZxyz(12.5220, 6.3499, 19.9642)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E127D #127E13
analogous
#49127E #7E127D #7E1247
triadic
#7E127D #7D7E12 #127D7E
tetradic
#7E127D #7E4912 #127E13 #12477E
square
#7E127D #7E4912 #127E13 #12477E
split-complementary
#7E127D #477E12 #127E49
monochromatic
#1B041B #480A48 #7E127D #B41AB2 #E12ADF

Accessibility & contrast

On white

9.25
#7E127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E127D
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E127D#FFFFFF#000000##FFFFFF
##7E127D1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#822649
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e127d;
/* rgb */ color: rgb(126, 18, 125);
/* oklch */ color: oklch(42.3% 0.180 328.6);
Tailwind
colors: {
  custom: {
    50: '#a761a3',
    500: '#7e127d',
    950: '#000000',
  },
}
SCSS
$custom: #7e127d;
$custom-light: #a761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e127d",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 300.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.18033,
    "h": 328.6
  },
  "luminance": 0.06349
}

Semantic roles & 50–950 ramp

primary
#7E127D
secondary
#38B439
accent
#F23836
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E127D

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

Preview Lab → · Contrast checker → · Palette generator →

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