#7E1277#7E1277

#7E1277 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.176 H 331.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7E1277
RGBrgb(126, 18, 119)
HSLhsl(304, 75%, 28%)
HSVhsv(304, 86%, 49%)
CMYKcmyk(0%, 85.7%, 5.6%, 50.6%)
CIE-LABlab(29.91, 53.97, -30.62)
CIE-LCHlch(29.91, 62.05, 330.43°)
OKLaboklab(41.93% 0.1542 -0.0845)
OKLCHoklch(41.93% 0.176 331.3)
XYZxyz(12.1503, 6.2012, 18.0062)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1277 #127E19
analogous
#4F127E #7E1277 #7E1241
triadic
#7E1277 #777E12 #12777E
tetradic
#7E1277 #7E4F12 #127E19 #12417E
square
#7E1277 #7E4F12 #127E19 #12417E
split-complementary
#7E1277 #417E12 #127E4F
monochromatic
#1B0419 #480A44 #7E1277 #B41AAA #E12AD5

Accessibility & contrast

On white

9.38
#7E1277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1277
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1277#FFFFFF#000000##FFFFFF
##7E12771.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013D7A
Deuteranopia (green-blind)
#384B75
Tritanopia (blue-blind)
#832346
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1277;
/* rgb */ color: rgb(126, 18, 119);
/* oklch */ color: oklch(41.9% 0.176 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7619e',
    500: '#7e1277',
    950: '#000000',
  },
}
SCSS
$custom: #7e1277;
$custom-light: #a7619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1277",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 119
  },
  "hsl": {
    "h": 303.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41933,
    "c": 0.17584,
    "h": 331.3
  },
  "luminance": 0.062
}

Semantic roles & 50–950 ramp

primary
#7E1277
secondary
#38B440
accent
#F24236
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1277

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

Preview Lab → · Contrast checker → · Palette generator →

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