#7E1CA7#7E1CA7

#7E1CA7 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 45.9% C 0.207 H 312.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7E1CA7
RGBrgb(126, 28, 167)
HSLhsl(282, 71%, 38%)
HSVhsv(282, 83%, 65%)
CMYKcmyk(24.6%, 83.2%, 0%, 34.5%)
CIE-LABlab(34.10, 60.09, -53.52)
CIE-LCHlch(34.10, 80.46, 318.31°)
OKLaboklab(45.92% 0.1405 -0.1516)
OKLCHoklch(45.92% 0.207 312.8)
XYZxyz(15.9932, 8.0566, 37.2643)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1CA7 #45A71C
analogous
#381CA7 #7E1CA7 #A71C8A
triadic
#7E1CA7 #A77E1C #1CA77E
tetradic
#7E1CA7 #A7381C #45A71C #1C8AA7
square
#7E1CA7 #A7381C #45A71C #1C8AA7
split-complementary
#7E1CA7 #8AA71C #1CA738
monochromatic
#2F0A3E #561373 #7E1CA7 #A526DB #BB5AE3

Accessibility & contrast

On white

8.04
#7E1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1CA7
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1CA7#FFFFFF#000000##FFFFFF
##7E1CA71.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1ca7;
/* rgb */ color: rgb(126, 28, 167);
/* oklch */ color: oklch(45.9% 0.207 312.8);
Tailwind
colors: {
  custom: {
    50: '#a866c2',
    500: '#7e1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ca7;
$custom-light: #a866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ca7",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 282.302,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45922,
    "c": 0.20669,
    "h": 312.8
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7E1CA7
secondary
#79C758
accent
#EE3A6F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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