#7E18A7#7E18A7

#7E18A7 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.7% C 0.210 H 313.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7E18A7
RGBrgb(126, 24, 167)
HSLhsl(283, 75%, 37%)
HSVhsv(283, 86%, 65%)
CMYKcmyk(24.6%, 85.6%, 0%, 34.5%)
CIE-LABlab(33.73, 61.17, -54.12)
CIE-LCHlch(33.73, 81.67, 318.50°)
OKLaboklab(45.66% 0.1431 -0.1533)
OKLCHoklch(45.66% 0.21 313)
XYZxyz(15.9046, 7.8794, 37.2348)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E18A7 #41A718
analogous
#3618A7 #7E18A7 #A71889
triadic
#7E18A7 #A77E18 #18A77E
tetradic
#7E18A7 #A73618 #41A718 #1889A7
square
#7E18A7 #A73618 #41A718 #1889A7
split-complementary
#7E18A7 #89A718 #18A736
monochromatic
#2D093C #561071 #7E18A7 #A620DD #BC53E6

Accessibility & contrast

On white

8.15
#7E18A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E18A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E18A7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E18A7#FFFFFF#000000##FFFFFF
##7E18A71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#793F63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e18a7;
/* rgb */ color: rgb(126, 24, 167);
/* oklch */ color: oklch(45.7% 0.210 313.0);
Tailwind
colors: {
  custom: {
    50: '#a865c2',
    500: '#7e18a7',
    950: '#000000',
  },
}
SCSS
$custom: #7e18a7;
$custom-light: #a865c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e18a7",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 167
  },
  "hsl": {
    "h": 282.797,
    "s": 74.869,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45664,
    "c": 0.20976,
    "h": 313
  },
  "luminance": 0.07879
}

Semantic roles & 50–950 ramp

primary
#7E18A7
secondary
#74C952
accent
#F1366C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E18A7

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

Preview Lab → · Contrast checker → · Palette generator →

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