#7E1FAC#7E1FAC

#7E1FAC is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.209 H 311.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7E1FAC
RGBrgb(126, 31, 172)
HSLhsl(280, 69%, 40%)
HSVhsv(280, 82%, 67%)
CMYKcmyk(26.7%, 82%, 0%, 32.5%)
CIE-LABlab(34.79, 60.21, -55.39)
CIE-LCHlch(34.79, 81.82, 317.39°)
OKLaboklab(46.52% 0.1372 -0.1571)
OKLCHoklch(46.52% 0.209 311.1)
XYZxyz(16.5391, 8.3946, 39.7708)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FAC #4DAC1F
analogous
#381FAC #7E1FAC #AC1F93
triadic
#7E1FAC #AC7E1F #1FAC7E
tetradic
#7E1FAC #AC381F #4DAC1F #1F93AC
square
#7E1FAC #AC381F #4DAC1F #1F93AC
split-complementary
#7E1FAC #93AC1F #1FAC38
monochromatic
#320C44 #581678 #7E1FAC #A22FD9 #B963E3

Accessibility & contrast

On white

7.84
#7E1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1FAC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FAC#FFFFFF#000000##FFFFFF
##7E1FAC1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#784467
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e1fac;
/* rgb */ color: rgb(126, 31, 172);
/* oklch */ color: oklch(46.5% 0.209 311.1);
Tailwind
colors: {
  custom: {
    50: '#a868c6',
    500: '#7e1fac',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fac;
$custom-light: #a868c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fac",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 280.426,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46524,
    "c": 0.20857,
    "h": 311.1
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#7E1FAC
secondary
#81C85F
accent
#EC3C75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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