#7E1B85#7E1B85

#7E1B85 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.179 H 325.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1B85
RGBrgb(126, 27, 133)
HSLhsl(296, 66%, 31%)
HSVhsv(296, 80%, 52%)
CMYKcmyk(5.3%, 79.7%, 0%, 47.8%)
CIE-LABlab(31.61, 53.91, -36.72)
CIE-LCHlch(31.61, 65.22, 325.74°)
OKLaboklab(43.41% 0.1467 -0.1023)
OKLCHoklch(43.41% 0.179 325.1)
XYZxyz(13.2294, 6.9138, 22.8234)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B85 #22851B
analogous
#491B85 #7E1B85 #851B57
triadic
#7E1B85 #857E1B #1B857E
tetradic
#7E1B85 #85491B #22851B #1B5785
square
#7E1B85 #85491B #22851B #1B5785
split-complementary
#7E1B85 #57851B #1B8549
monochromatic
#1E061F #4E1152 #7E1B85 #AE25B8 #CF42D9

Accessibility & contrast

On white

8.81
#7E1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B85
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B85#FFFFFF#000000##FFFFFF
##7E1B851.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#334E83
Tritanopia (blue-blind)
#812F50
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1b85;
/* rgb */ color: rgb(126, 27, 133);
/* oklch */ color: oklch(43.4% 0.179 325.1);
Tailwind
colors: {
  custom: {
    50: '#a764a9',
    500: '#7e1b85',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b85;
$custom-light: #a764a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b85",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 296.038,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.17888,
    "h": 325.1
  },
  "luminance": 0.06913
}

Semantic roles & 50–950 ramp

primary
#7E1B85
secondary
#4BB844
accent
#E93F4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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