#7E18C9#7E18C9

#7E18C9 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.5% C 0.239 H 303.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7E18C9
RGBrgb(126, 24, 201)
HSLhsl(275, 79%, 44%)
HSVhsv(275, 88%, 79%)
CMYKcmyk(37.3%, 88.1%, 0%, 21.2%)
CIE-LABlab(36.57, 68.17, -69.62)
CIE-LCHlch(36.57, 97.44, 314.39°)
OKLaboklab(48.5% 0.1325 -0.1989)
OKLCHoklch(48.5% 0.239 303.7)
XYZxyz(19.4709, 9.3060, 56.0175)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E18C9 #63C918
analogous
#2518C9 #7E18C9 #C918BC
triadic
#7E18C9 #C97E18 #18C97E
tetradic
#7E18C9 #C92518 #63C918 #18BCC9
square
#7E18C9 #C92518 #63C918 #18BCC9
split-complementary
#7E18C9 #BCC918 #18C925
monochromatic
#390B5C #5C1192 #7E18C9 #9D37E7 #B76EEE

Accessibility & contrast

On white

7.34
#7E18C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7E18C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E18C9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E18C9#FFFFFF#000000##FFFFFF
##7E18C91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0056C6
Tritanopia (blue-blind)
#6E4F77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e18c9;
/* rgb */ color: rgb(126, 24, 201);
/* oklch */ color: oklch(48.5% 0.239 303.7);
Tailwind
colors: {
  custom: {
    50: '#ab67db',
    500: '#7e18c9',
    950: '#000000',
  },
}
SCSS
$custom: #7e18c9;
$custom-light: #ab67db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e18c9",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 274.576,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48497,
    "c": 0.23895,
    "h": 303.7
  },
  "luminance": 0.09306
}

Semantic roles & 50–950 ramp

primary
#7E18C9
secondary
#96D469
accent
#F53385
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7E18C9

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

Preview Lab → · Contrast checker → · Palette generator →

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