#7E1870#7E1870

#7E1870 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.165 H 334.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#7E1870
RGBrgb(126, 24, 112)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 81%, 11.1%, 50.6%)
CIE-LABlab(30.06, 51.29, -25.93)
CIE-LCHlch(30.06, 57.48, 333.18°)
OKLaboklab(41.91% 0.1495 -0.071)
OKLCHoklch(41.91% 0.165 334.6)
XYZxyz(11.8556, 6.2598, 15.9100)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1870 #187E26
analogous
#59187E #7E1870 #7E183D
triadic
#7E1870 #707E18 #18707E
tetradic
#7E1870 #7E5918 #187E26 #183D7E
square
#7E1870 #7E5918 #187E26 #183D7E
split-complementary
#7E1870 #3D7E18 #187E59
monochromatic
#1A0517 #4B0E42 #7E1870 #B1229E #D937C3

Accessibility & contrast

On white

9.33
#7E1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1870
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1870#FFFFFF#000000##FFFFFF
##7E18701.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D72
Deuteranopia (green-blind)
#3E4C6E
Tritanopia (blue-blind)
#842243
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1870;
/* rgb */ color: rgb(126, 24, 112);
/* oklch */ color: oklch(41.9% 0.165 334.6);
Tailwind
colors: {
  custom: {
    50: '#a76299',
    500: '#7e1870',
    950: '#000000',
  },
}
SCSS
$custom: #7e1870;
$custom-light: #a76299;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1870",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 308.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41907,
    "c": 0.16548,
    "h": 334.6
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#7E1870
secondary
#3FB24F
accent
#EB553D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1870

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

Preview Lab → · Contrast checker → · Palette generator →

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