#7E1F83#7E1F83

#7E1F83 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.173 H 325.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7E1F83
RGBrgb(126, 31, 131)
HSLhsl(297, 62%, 32%)
HSVhsv(297, 76%, 51%)
CMYKcmyk(3.8%, 76.3%, 0%, 48.6%)
CIE-LABlab(31.93, 52.26, -34.96)
CIE-LCHlch(31.93, 62.88, 326.22°)
OKLaboklab(43.6% 0.1432 -0.0972)
OKLCHoklch(43.6% 0.173 325.8)
XYZxyz(13.1906, 7.0552, 22.1354)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F83 #24831F
analogous
#4C1F83 #7E1F83 #831F56
triadic
#7E1F83 #837E1F #1F837E
tetradic
#7E1F83 #834C1F #24831F #1F5683
square
#7E1F83 #834C1F #24831F #1F5683
split-complementary
#7E1F83 #56831F #1F834C
monochromatic
#1F0820 #4E1352 #7E1F83 #AE2BB4 #CD49D4

Accessibility & contrast

On white

8.71
#7E1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F83
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F83#FFFFFF#000000##FFFFFF
##7E1F831.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004486
Deuteranopia (green-blind)
#364F81
Tritanopia (blue-blind)
#813050
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f83;
/* rgb */ color: rgb(126, 31, 131);
/* oklch */ color: oklch(43.6% 0.173 325.8);
Tailwind
colors: {
  custom: {
    50: '#a766a7',
    500: '#7e1f83',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f83;
$custom-light: #a766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f83",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 297,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43602,
    "c": 0.17313,
    "h": 325.8
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#7E1F83
secondary
#4EB648
accent
#E5434B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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