#7E1F74#7E1F74

#7E1F74 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.161 H 332.7°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7E1F74
RGBrgb(126, 31, 116)
HSLhsl(306, 61%, 31%)
HSVhsv(306, 75%, 49%)
CMYKcmyk(0%, 75.4%, 7.9%, 50.6%)
CIE-LABlab(31.06, 49.69, -26.90)
CIE-LCHlch(31.06, 56.50, 331.57°)
OKLaboklab(42.7% 0.1431 -0.0739)
OKLCHoklch(42.7% 0.161 332.7)
XYZxyz(12.2466, 6.6776, 17.1635)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F74 #1F7E29
analogous
#581F7E #7E1F74 #7E1F44
triadic
#7E1F74 #747E1F #1F747E
tetradic
#7E1F74 #7E581F #1F7E29 #1F447E
square
#7E1F74 #7E581F #1F7E29 #1F447E
split-complementary
#7E1F74 #447E1F #1F7E58
monochromatic
#1C071A #4D1347 #7E1F74 #AF2BA1 #D146C3

Accessibility & contrast

On white

8.99
#7E1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F74
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F74#FFFFFF#000000##FFFFFF
##7E1F741.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1f74;
/* rgb */ color: rgb(126, 31, 116);
/* oklch */ color: oklch(42.7% 0.161 332.7);
Tailwind
colors: {
  custom: {
    50: '#a7659c',
    500: '#7e1f74',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f74;
$custom-light: #a7659c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f74",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 306.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42697,
    "c": 0.16104,
    "h": 332.7
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#7E1F74
secondary
#48B153
accent
#E45544
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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