#7E1BA8#7E1BA8

#7E1BA8 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.9% C 0.208 H 312.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7E1BA8
RGBrgb(126, 27, 168)
HSLhsl(282, 72%, 38%)
HSVhsv(282, 84%, 66%)
CMYKcmyk(25%, 83.9%, 0%, 34.1%)
CIE-LABlab(34.08, 60.57, -54.15)
CIE-LCHlch(34.08, 81.25, 318.20°)
OKLaboklab(45.93% 0.141 -0.1534)
OKLCHoklch(45.93% 0.208 312.6)
XYZxyz(16.0627, 8.0471, 37.7453)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1BA8 #45A81B
analogous
#381BA8 #7E1BA8 #A81B8B
triadic
#7E1BA8 #A87E1B #1BA87E
tetradic
#7E1BA8 #A8381B #45A81B #1B8BA8
square
#7E1BA8 #A8381B #45A81B #1B8BA8
split-complementary
#7E1BA8 #8BA81B #1BA838
monochromatic
#2F0A3F #561373 #7E1BA8 #A524DC #BB59E4

Accessibility & contrast

On white

8.05
#7E1BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7E1BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1BA8
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1BA8#FFFFFF#000000##FFFFFF
##7E1BA81.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#794064
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1ba8;
/* rgb */ color: rgb(126, 27, 168);
/* oklch */ color: oklch(45.9% 0.208 312.6);
Tailwind
colors: {
  custom: {
    50: '#a866c3',
    500: '#7e1ba8',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ba8;
$custom-light: #a866c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ba8",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 282.128,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45932,
    "c": 0.20836,
    "h": 312.6
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#7E1BA8
secondary
#79C857
accent
#EF396F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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