#7E1E9B#7E1E9B

#7E1E9B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.195 H 316.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7E1E9B
RGBrgb(126, 30, 155)
HSLhsl(286, 68%, 36%)
HSVhsv(286, 81%, 61%)
CMYKcmyk(18.7%, 80.6%, 0%, 39.2%)
CIE-LABlab(33.42, 57.10, -47.36)
CIE-LCHlch(33.42, 74.19, 320.33°)
OKLaboklab(45.16% 0.1415 -0.1335)
OKLCHoklch(45.16% 0.195 316.7)
XYZxyz(14.9839, 7.7314, 31.7070)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E9B #3B9B1E
analogous
#401E9B #7E1E9B #9B1E7A
triadic
#7E1E9B #9B7E1E #1E9B7E
tetradic
#7E1E9B #9B401E #3B9B1E #1E7A9B
square
#7E1E9B #9B401E #3B9B1E #1E7A9B
split-complementary
#7E1E9B #7A9B1E #1E9B40
monochromatic
#2B0A34 #541468 #7E1E9B #A828CE #BE55DE

Accessibility & contrast

On white

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

On black

2.55
#7E1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E1E9B#FFFFFF#000000##FFFFFF
##7E1E9B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1e9b;
/* rgb */ color: rgb(126, 30, 155);
/* oklch */ color: oklch(45.2% 0.195 316.7);
Tailwind
colors: {
  custom: {
    50: '#a867b9',
    500: '#7e1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e9b;
$custom-light: #a867b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e9b",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 286.08,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45163,
    "c": 0.19456,
    "h": 316.7
  },
  "luminance": 0.07731
}

Semantic roles & 50–950 ramp

primary
#7E1E9B
secondary
#6DC253
accent
#EA3D66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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