#7E1F73#7E1F73

#7E1F73 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.160 H 333.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7E1F73
RGBrgb(126, 31, 115)
HSLhsl(307, 61%, 31%)
HSVhsv(307, 75%, 49%)
CMYKcmyk(0%, 75.4%, 8.7%, 50.6%)
CIE-LABlab(31.01, 49.53, -26.35)
CIE-LCHlch(31.01, 56.10, 331.99°)
OKLaboklab(42.64% 0.143 -0.0723)
OKLCHoklch(42.64% 0.16 333.2)
XYZxyz(12.1888, 6.6544, 16.8588)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F73 #1F7E2A
analogous
#591F7E #7E1F73 #7E1F43
triadic
#7E1F73 #737E1F #1F737E
tetradic
#7E1F73 #7E591F #1F7E2A #1F437E
square
#7E1F73 #7E591F #1F7E2A #1F437E
split-complementary
#7E1F73 #437E1F #1F7E59
monochromatic
#1C0719 #4D1346 #7E1F73 #AF2BA0 #D146C1

Accessibility & contrast

On white

9.01
#7E1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F73
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F73#FFFFFF#000000##FFFFFF
##7E1F731.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4075
Deuteranopia (green-blind)
#3F4E71
Tritanopia (blue-blind)
#842947
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1f73;
/* rgb */ color: rgb(126, 31, 115);
/* oklch */ color: oklch(42.6% 0.160 333.2);
Tailwind
colors: {
  custom: {
    50: '#a7659b',
    500: '#7e1f73',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f73;
$custom-light: #a7659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f73",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 306.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.16026,
    "h": 333.2
  },
  "luminance": 0.06653
}

Semantic roles & 50–950 ramp

primary
#7E1F73
secondary
#48B154
accent
#E45744
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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