#7E1B9F#7E1B9F

#7E1B9F is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.2% C 0.201 H 315.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7E1B9F
RGBrgb(126, 27, 159)
HSLhsl(285, 71%, 36%)
HSVhsv(285, 83%, 62%)
CMYKcmyk(20.8%, 83%, 0%, 37.6%)
CIE-LABlab(33.40, 58.78, -49.82)
CIE-LCHlch(33.40, 77.06, 319.72°)
OKLaboklab(45.24% 0.143 -0.1407)
OKLCHoklch(45.24% 0.201 315.5)
XYZxyz(15.2531, 7.7233, 33.4814)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B9F #3C9F1B
analogous
#3C1B9F #7E1B9F #9F1B7E
triadic
#7E1B9F #9F7E1B #1B9F7E
tetradic
#7E1B9F #9F3C1B #3C9F1B #1B7E9F
square
#7E1B9F #9F3C1B #3C9F1B #1B7E9F
split-complementary
#7E1B9F #7E9F1B #1B9F3C
monochromatic
#2B0936 #55126B #7E1B9F #A724D3 #BE53E2

Accessibility & contrast

On white

8.25
#7E1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B9F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B9F#FFFFFF#000000##FFFFFF
##7E1B9F1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#14519C
Tritanopia (blue-blind)
#7B3C5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1b9f;
/* rgb */ color: rgb(126, 27, 159);
/* oklch */ color: oklch(45.2% 0.201 315.5);
Tailwind
colors: {
  custom: {
    50: '#a866bc',
    500: '#7e1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b9f;
$custom-light: #a866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b9f",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 285,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45243,
    "c": 0.20063,
    "h": 315.5
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#7E1B9F
secondary
#6EC551
accent
#EE3A67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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