#7E18A0#7E18A0

#7E18A0 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.204 H 315.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7E18A0
RGBrgb(126, 24, 160)
HSLhsl(285, 74%, 36%)
HSVhsv(285, 85%, 63%)
CMYKcmyk(21.2%, 85%, 0%, 37.3%)
CIE-LABlab(33.20, 59.79, -50.76)
CIE-LCHlch(33.20, 78.43, 319.67°)
OKLaboklab(45.12% 0.1448 -0.1435)
OKLCHoklch(45.12% 0.204 315.3)
XYZxyz(15.2749, 7.6276, 33.9185)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E18A0 #3AA018
analogous
#3A18A0 #7E18A0 #A0187E
triadic
#7E18A0 #A07E18 #18A07E
tetradic
#7E18A0 #A03A18 #3AA018 #187EA0
square
#7E18A0 #A03A18 #3AA018 #187EA0
split-complementary
#7E18A0 #7EA018 #18A03A
monochromatic
#2A0836 #54106B #7E18A0 #A820D5 #BF4EE4

Accessibility & contrast

On white

8.32
#7E18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E18A0
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E18A0#FFFFFF#000000##FFFFFF
##7E18A01.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#0E509D
Tritanopia (blue-blind)
#7B3B5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e18a0;
/* rgb */ color: rgb(126, 24, 160);
/* oklch */ color: oklch(45.1% 0.204 315.3);
Tailwind
colors: {
  custom: {
    50: '#a865bd',
    500: '#7e18a0',
    950: '#000000',
  },
}
SCSS
$custom: #7e18a0;
$custom-light: #a865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e18a0",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 285,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45123,
    "c": 0.20386,
    "h": 315.3
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#7E18A0
secondary
#6CC64D
accent
#F13766
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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