#7E1F9B#7E1F9B

#7E1F9B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.194 H 316.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E1F9B
RGBrgb(126, 31, 155)
HSLhsl(286, 67%, 36%)
HSVhsv(286, 80%, 61%)
CMYKcmyk(18.7%, 80%, 0%, 39.2%)
CIE-LABlab(33.53, 56.78, -47.19)
CIE-LCHlch(33.53, 73.83, 320.27°)
OKLaboklab(45.24% 0.1407 -0.133)
OKLCHoklch(45.24% 0.194 316.6)
XYZxyz(15.0097, 7.7828, 31.7156)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F9B #3C9B1F
analogous
#401F9B #7E1F9B #9B1F7A
triadic
#7E1F9B #9B7E1F #1F9B7E
tetradic
#7E1F9B #9B401F #3C9B1F #1F7A9B
square
#7E1F9B #9B401F #3C9B1F #1F7A9B
split-complementary
#7E1F9B #7A9B1F #1F9B40
monochromatic
#2B0B35 #551568 #7E1F9B #A729CE #BE57DD

Accessibility & contrast

On white

8.21
#7E1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F9B
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F9B#FFFFFF#000000##FFFFFF
##7E1F9B1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1F5198
Tritanopia (blue-blind)
#7C3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1f9b;
/* rgb */ color: rgb(126, 31, 155);
/* oklch */ color: oklch(45.2% 0.194 316.6);
Tailwind
colors: {
  custom: {
    50: '#a867b9',
    500: '#7e1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f9b;
$custom-light: #a867b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f9b",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 285.968,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4524,
    "c": 0.19363,
    "h": 316.6
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#7E1F9B
secondary
#6EC155
accent
#EA3E66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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