#7E1F70#7E1F70

#7E1F70 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.158 H 334.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7E1F70
RGBrgb(126, 31, 112)
HSLhsl(309, 61%, 31%)
HSVhsv(309, 75%, 49%)
CMYKcmyk(0%, 75.4%, 11.1%, 50.6%)
CIE-LABlab(30.85, 49.04, -24.69)
CIE-LCHlch(30.85, 54.91, 333.27°)
OKLaboklab(42.47% 0.1428 -0.0675)
OKLCHoklch(42.47% 0.158 334.7)
XYZxyz(12.0189, 6.5865, 15.9644)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F70 #1F7E2D
analogous
#5C1F7E #7E1F70 #7E1F40
triadic
#7E1F70 #707E1F #1F707E
tetradic
#7E1F70 #7E5C1F #1F7E2D #1F407E
square
#7E1F70 #7E5C1F #1F7E2D #1F407E
split-complementary
#7E1F70 #407E1F #1F7E5C
monochromatic
#1C0719 #4D1344 #7E1F70 #AF2B9C #D146BD

Accessibility & contrast

On white

9.06
#7E1F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E1F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F70
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F70#FFFFFF#000000##FFFFFF
##7E1F701.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4072
Deuteranopia (green-blind)
#404E6E
Tritanopia (blue-blind)
#842745
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1f70;
/* rgb */ color: rgb(126, 31, 112);
/* oklch */ color: oklch(42.5% 0.158 334.7);
Tailwind
colors: {
  custom: {
    50: '#a76599',
    500: '#7e1f70',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f70;
$custom-light: #a76599;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f70",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 308.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.15796,
    "h": 334.7
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#7E1F70
secondary
#48B157
accent
#E45C44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F70

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

Preview Lab → · Contrast checker → · Palette generator →

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