#7E1F85#7E1F85

#7E1F85 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.175 H 325.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7E1F85
RGBrgb(126, 31, 133)
HSLhsl(296, 62%, 32%)
HSVhsv(296, 77%, 52%)
CMYKcmyk(5.3%, 76.7%, 0%, 47.8%)
CIE-LABlab(32.06, 52.62, -36.01)
CIE-LCHlch(32.06, 63.76, 325.62°)
OKLaboklab(43.73% 0.1432 -0.1003)
OKLCHoklch(43.73% 0.175 325)
XYZxyz(13.3275, 7.1099, 22.8561)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F85 #26851F
analogous
#4B1F85 #7E1F85 #851F59
triadic
#7E1F85 #857E1F #1F857E
tetradic
#7E1F85 #854B1F #26851F #1F5985
square
#7E1F85 #854B1F #26851F #1F5985
split-complementary
#7E1F85 #59851F #1F854B
monochromatic
#200822 #4F1353 #7E1F85 #AD2BB7 #CB4AD5

Accessibility & contrast

On white

8.67
#7E1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F85
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F85#FFFFFF#000000##FFFFFF
##7E1F851.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#344F83
Tritanopia (blue-blind)
#813151
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f85;
/* rgb */ color: rgb(126, 31, 133);
/* oklch */ color: oklch(43.7% 0.175 325.0);
Tailwind
colors: {
  custom: {
    50: '#a766a9',
    500: '#7e1f85',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f85;
$custom-light: #a766a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f85",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 295.882,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4373,
    "c": 0.1748,
    "h": 325
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

primary
#7E1F85
secondary
#50B749
accent
#E5434E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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