#7E1C95#7E1C95

#7E1C95 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.191 H 318.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7E1C95
RGBrgb(126, 28, 149)
HSLhsl(289, 68%, 35%)
HSVhsv(289, 81%, 58%)
CMYKcmyk(15.4%, 81.2%, 0%, 41.6%)
CIE-LABlab(32.78, 56.55, -44.73)
CIE-LCHlch(32.78, 72.10, 321.66°)
OKLaboklab(44.58% 0.1441 -0.1258)
OKLCHoklch(44.58% 0.191 318.9)
XYZxyz(14.4435, 7.4368, 29.1026)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C95 #33951C
analogous
#411C95 #7E1C95 #951C70
triadic
#7E1C95 #957E1C #1C957E
tetradic
#7E1C95 #95411C #33951C #1C7095
square
#7E1C95 #95411C #33951C #1C7095
split-complementary
#7E1C95 #70951C #1C9541
monochromatic
#27092E #521261 #7E1C95 #AA26C9 #C24EDE

Accessibility & contrast

On white

8.44
#7E1C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E1C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C95
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C95#FFFFFF#000000##FFFFFF
##7E1C951.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#255092
Tritanopia (blue-blind)
#7E3759
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1c95;
/* rgb */ color: rgb(126, 28, 149);
/* oklch */ color: oklch(44.6% 0.191 318.9);
Tailwind
colors: {
  custom: {
    50: '#a766b5',
    500: '#7e1c95',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c95;
$custom-light: #a766b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c95",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 288.595,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.19126,
    "h": 318.9
  },
  "luminance": 0.07436
}

Semantic roles & 50–950 ramp

primary
#7E1C95
secondary
#63C04D
accent
#EB3D5E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1C95

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

Preview Lab → · Contrast checker → · Palette generator →

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