#7E1B8F#7E1B8F

#7E1B8F is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.187 H 321.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7E1B8F
RGBrgb(126, 27, 143)
HSLhsl(291, 68%, 33%)
HSVhsv(291, 81%, 56%)
CMYKcmyk(11.9%, 81.1%, 0%, 43.9%)
CIE-LABlab(32.27, 55.72, -41.87)
CIE-LCHlch(32.27, 69.70, 323.08°)
OKLaboklab(44.09% 0.1457 -0.1174)
OKLCHoklch(44.09% 0.187 321.1)
XYZxyz(13.9535, 7.2034, 26.6367)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B8F #2C8F1B
analogous
#441B8F #7E1B8F #8F1B66
triadic
#7E1B8F #8F7E1B #1B8F7E
tetradic
#7E1B8F #8F441B #2C8F1B #1B668F
square
#7E1B8F #8F441B #2C8F1B #1B668F
split-complementary
#7E1B8F #668F1B #1B8F44
monochromatic
#230828 #51115C #7E1B8F #AB25C2 #C748DC

Accessibility & contrast

On white

8.60
#7E1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B8F
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B8F#FFFFFF#000000##FFFFFF
##7E1B8F1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#7F3456
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1b8f;
/* rgb */ color: rgb(126, 27, 143);
/* oklch */ color: oklch(44.1% 0.187 321.1);
Tailwind
colors: {
  custom: {
    50: '#a765b0',
    500: '#7e1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b8f;
$custom-light: #a765b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b8f",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 291.207,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44086,
    "c": 0.18713,
    "h": 321.1
  },
  "luminance": 0.07203
}

Semantic roles & 50–950 ramp

primary
#7E1B8F
secondary
#59BE48
accent
#EB3D56
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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