#7E1F72#7E1F72

#7E1F72 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.159 H 333.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7E1F72
RGBrgb(126, 31, 114)
HSLhsl(308, 61%, 31%)
HSVhsv(308, 75%, 49%)
CMYKcmyk(0%, 75.4%, 9.5%, 50.6%)
CIE-LABlab(30.95, 49.36, -25.80)
CIE-LCHlch(30.95, 55.70, 332.41°)
OKLaboklab(42.58% 0.143 -0.0707)
OKLCHoklch(42.58% 0.159 333.7)
XYZxyz(12.1315, 6.6315, 16.5574)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F72 #1F7E2B
analogous
#5A1F7E #7E1F72 #7E1F42
triadic
#7E1F72 #727E1F #1F727E
tetradic
#7E1F72 #7E5A1F #1F7E2B #1F427E
square
#7E1F72 #7E5A1F #1F7E2B #1F427E
split-complementary
#7E1F72 #427E1F #1F7E5A
monochromatic
#1C0719 #4D1346 #7E1F72 #AF2B9E #D146C0

Accessibility & contrast

On white

9.03
#7E1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F72
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F72#FFFFFF#000000##FFFFFF
##7E1F721.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4074
Deuteranopia (green-blind)
#3F4E70
Tritanopia (blue-blind)
#842846
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1f72;
/* rgb */ color: rgb(126, 31, 114);
/* oklch */ color: oklch(42.6% 0.159 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7659b',
    500: '#7e1f72',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f72;
$custom-light: #a7659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f72",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 307.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42584,
    "c": 0.15949,
    "h": 333.7
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#7E1F72
secondary
#48B155
accent
#E45844
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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