#7E127B#7E127B

#7E127B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.179 H 329.5°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#7E127B
RGBrgb(126, 18, 123)
HSLhsl(302, 75%, 28%)
HSVhsv(302, 86%, 49%)
CMYKcmyk(0%, 85.7%, 2.4%, 50.6%)
CIE-LABlab(30.16, 54.61, -32.77)
CIE-LCHlch(30.16, 63.69, 329.04°)
OKLaboklab(42.18% 0.1541 -0.0908)
OKLCHoklch(42.18% 0.179 329.5)
XYZxyz(12.3956, 6.2993, 19.2981)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E127B #127E15
analogous
#4B127E #7E127B #7E1245
triadic
#7E127B #7B7E12 #127B7E
tetradic
#7E127B #7E4B12 #127E15 #12457E
square
#7E127B #7E4B12 #127E15 #12457E
split-complementary
#7E127B #457E12 #127E4B
monochromatic
#1B041A #480A47 #7E127B #B41AAF #E12ADB

Accessibility & contrast

On white

9.29
#7E127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E127B
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E127B#FFFFFF#000000##FFFFFF
##7E127B1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#832548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e127b;
/* rgb */ color: rgb(126, 18, 123);
/* oklch */ color: oklch(42.2% 0.179 329.5);
Tailwind
colors: {
  custom: {
    50: '#a761a1',
    500: '#7e127b',
    950: '#000000',
  },
}
SCSS
$custom: #7e127b;
$custom-light: #a761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e127b",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 301.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42181,
    "c": 0.17882,
    "h": 329.5
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#7E127B
secondary
#38B43B
accent
#F23B36
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E127B

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

Preview Lab → · Contrast checker → · Palette generator →

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