#7E1E9A#7E1E9A

#7E1E9A is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.194 H 317.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E1E9A
RGBrgb(126, 30, 154)
HSLhsl(286, 67%, 36%)
HSVhsv(286, 81%, 60%)
CMYKcmyk(18.2%, 80.5%, 0%, 39.6%)
CIE-LABlab(33.35, 56.90, -46.87)
CIE-LCHlch(33.35, 73.72, 320.52°)
OKLaboklab(45.09% 0.1417 -0.1321)
OKLCHoklch(45.09% 0.194 317)
XYZxyz(14.9003, 7.6979, 31.2666)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E9A #3A9A1E
analogous
#401E9A #7E1E9A #9A1E78
triadic
#7E1E9A #9A7E1E #1E9A7E
tetradic
#7E1E9A #9A401E #3A9A1E #1E789A
square
#7E1E9A #9A401E #3A9A1E #1E789A
split-complementary
#7E1E9A #789A1E #1E9A40
monochromatic
#2A0A34 #541467 #7E1E9A #A828CD #BF55DE

Accessibility & contrast

On white

8.27
#7E1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1E9A
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E9A#FFFFFF#000000##FFFFFF
##7E1E9A1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#205197
Tritanopia (blue-blind)
#7C3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1e9a;
/* rgb */ color: rgb(126, 30, 154);
/* oklch */ color: oklch(45.1% 0.194 317.0);
Tailwind
colors: {
  custom: {
    50: '#a867b8',
    500: '#7e1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e9a;
$custom-light: #a867b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e9a",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 286.452,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4509,
    "c": 0.1937,
    "h": 317
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#7E1E9A
secondary
#6CC153
accent
#EA3E65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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