#7E1B97#7E1B97

#7E1B97 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.194 H 318.2°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7E1B97
RGBrgb(126, 27, 151)
HSLhsl(288, 70%, 35%)
HSVhsv(288, 82%, 59%)
CMYKcmyk(16.6%, 82.1%, 0%, 40.8%)
CIE-LABlab(32.82, 57.23, -45.89)
CIE-LCHlch(32.82, 73.36, 321.28°)
OKLaboklab(44.65% 0.1445 -0.1292)
OKLCHoklch(44.65% 0.194 318.2)
XYZxyz(14.5812, 7.4545, 29.9430)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B97 #34971B
analogous
#401B97 #7E1B97 #971B72
triadic
#7E1B97 #977E1B #1B977E
tetradic
#7E1B97 #97401B #34971B #1B7297
square
#7E1B97 #97401B #34971B #1B7297
split-complementary
#7E1B97 #72971B #1B9740
monochromatic
#27082F #531263 #7E1B97 #A924CB #C24DDF

Accessibility & contrast

On white

8.43
#7E1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B97
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B97#FFFFFF#000000##FFFFFF
##7E1B971.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#7D385A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1b97;
/* rgb */ color: rgb(126, 27, 151);
/* oklch */ color: oklch(44.7% 0.194 318.2);
Tailwind
colors: {
  custom: {
    50: '#a865b6',
    500: '#7e1b97',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b97;
$custom-light: #a865b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b97",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 287.903,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.19384,
    "h": 318.2
  },
  "luminance": 0.07454
}

Semantic roles & 50–950 ramp

primary
#7E1B97
secondary
#64C14C
accent
#EC3B5F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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