#7E127F#7E127F

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

Color values

HEX#7E127F
RGBrgb(126, 18, 127)
HSLhsl(299, 75%, 28%)
HSVhsv(299, 86%, 50%)
CMYKcmyk(0.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(30.40, 55.27, -34.89)
CIE-LCHlch(30.40, 65.36, 327.74°)
OKLaboklab(42.44% 0.1538 -0.0969)
OKLCHoklch(42.44% 0.182 327.8)
XYZxyz(12.6511, 6.4015, 20.6438)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E127F #137F12
analogous
#47127F #7E127F #7F1249
triadic
#7E127F #7F7E12 #127F7E
tetradic
#7E127F #7F4712 #137F12 #12497F
square
#7E127F #7F4712 #137F12 #12497F
split-complementary
#7E127F #497F12 #127F47
monochromatic
#1B041B #490A49 #7E127F #B31AB5 #DF2BE1

Accessibility & contrast

On white

9.21
#7E127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E127F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E127F#FFFFFF#000000##FFFFFF
##7E127F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#82274B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e127f;
/* rgb */ color: rgb(126, 18, 127);
/* oklch */ color: oklch(42.4% 0.182 327.8);
Tailwind
colors: {
  custom: {
    50: '#a761a4',
    500: '#7e127f',
    950: '#000000',
  },
}
SCSS
$custom: #7e127f;
$custom-light: #a761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e127f",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 299.45,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.18184,
    "h": 327.8
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#7E127F
secondary
#39B538
accent
#F23638
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E127F

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

Preview Lab → · Contrast checker → · Palette generator →

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