#7E1270#7E1270

#7E1270 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.171 H 334.5°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7E1270
RGBrgb(126, 18, 112)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 86%, 49%)
CMYKcmyk(0%, 85.7%, 11.1%, 50.6%)
CIE-LABlab(29.51, 52.88, -26.79)
CIE-LCHlch(29.51, 59.28, 333.13°)
OKLaboklab(41.52% 0.1542 -0.0735)
OKLCHoklch(41.52% 0.171 334.5)
XYZxyz(11.7453, 6.0392, 15.8732)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1270 #127E20
analogous
#56127E #7E1270 #7E123A
triadic
#7E1270 #707E12 #12707E
tetradic
#7E1270 #7E5612 #127E20 #123A7E
square
#7E1270 #7E5612 #127E20 #123A7E
split-complementary
#7E1270 #3A7E12 #127E56
monochromatic
#1B0418 #480A40 #7E1270 #B41AA0 #E12AC9

Accessibility & contrast

On white

9.51
#7E1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1270
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1270#FFFFFF#000000##FFFFFF
##7E12701.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C72
Deuteranopia (green-blind)
#3C4B6E
Tritanopia (blue-blind)
#841E42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1270;
/* rgb */ color: rgb(126, 18, 112);
/* oklch */ color: oklch(41.5% 0.171 334.5);
Tailwind
colors: {
  custom: {
    50: '#a76099',
    500: '#7e1270',
    950: '#000000',
  },
}
SCSS
$custom: #7e1270;
$custom-light: #a76099;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1270",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 307.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41515,
    "c": 0.17076,
    "h": 334.5
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#7E1270
secondary
#38B448
accent
#F24E36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1270

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

Preview Lab → · Contrast checker → · Palette generator →

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