#7E1F7A#7E1F7A

#7E1F7A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.166 H 329.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7E1F7A
RGBrgb(126, 31, 122)
HSLhsl(303, 61%, 31%)
HSVhsv(303, 75%, 49%)
CMYKcmyk(0%, 75.4%, 3.2%, 50.6%)
CIE-LABlab(31.40, 50.69, -30.16)
CIE-LCHlch(31.40, 58.99, 329.25°)
OKLaboklab(43.05% 0.1433 -0.0833)
OKLCHoklch(43.05% 0.166 329.8)
XYZxyz(12.6070, 6.8217, 19.0613)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F7A #1F7E23
analogous
#521F7E #7E1F7A #7E1F4A
triadic
#7E1F7A #7A7E1F #1F7A7E
tetradic
#7E1F7A #7E521F #1F7E23 #1F4A7E
square
#7E1F7A #7E521F #1F7E23 #1F4A7E
split-complementary
#7E1F7A #4A7E1F #1F7E52
monochromatic
#1C071B #4D134A #7E1F7A #AF2BAA #D146CC

Accessibility & contrast

On white

8.88
#7E1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F7A
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F7A#FFFFFF#000000##FFFFFF
##7E1F7A1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427C
Deuteranopia (green-blind)
#3B4E78
Tritanopia (blue-blind)
#832C4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1f7a;
/* rgb */ color: rgb(126, 31, 122);
/* oklch */ color: oklch(43.0% 0.166 329.8);
Tailwind
colors: {
  custom: {
    50: '#a765a1',
    500: '#7e1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f7a;
$custom-light: #a765a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f7a",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 302.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43047,
    "c": 0.16579,
    "h": 329.8
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#7E1F7A
secondary
#48B14C
accent
#E44B44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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