#7E1970#7E1970

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

Color values

HEX#7E1970
RGBrgb(126, 25, 112)
HSLhsl(308, 67%, 30%)
HSVhsv(308, 80%, 49%)
CMYKcmyk(0%, 80.2%, 11.1%, 50.6%)
CIE-LABlab(30.16, 51.00, -25.77)
CIE-LCHlch(30.16, 57.14, 333.19°)
OKLaboklab(41.98% 0.1486 -0.0706)
OKLCHoklch(41.98% 0.164 334.6)
XYZxyz(11.8766, 6.3018, 15.9170)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1970 #197E27
analogous
#5A197E #7E1970 #7E193E
triadic
#7E1970 #707E19 #19707E
tetradic
#7E1970 #7E5A19 #197E27 #193E7E
square
#7E1970 #7E5A19 #197E27 #193E7E
split-complementary
#7E1970 #3E7E19 #197E5A
monochromatic
#1A0517 #4B0F43 #7E1970 #B1239D #D83AC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1970#FFFFFF#000000##FFFFFF
##7E19701.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)
#173E72
Deuteranopia (green-blind)
#3E4C6E
Tritanopia (blue-blind)
#842343
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1970;
/* rgb */ color: rgb(126, 25, 112);
/* oklch */ color: oklch(42.0% 0.164 334.6);
Tailwind
colors: {
  custom: {
    50: '#a76399',
    500: '#7e1970',
    950: '#000000',
  },
}
SCSS
$custom: #7e1970;
$custom-light: #a76399;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1970",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 308.317,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.4198,
    "c": 0.16449,
    "h": 334.6
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#7E1970
secondary
#41B250
accent
#EA563E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1970

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

Preview Lab → · Contrast checker → · Palette generator →

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