#7E16B4#7E16B4

#7E16B4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.6% C 0.222 H 309.3°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7E16B4
RGBrgb(126, 22, 180)
HSLhsl(279, 78%, 40%)
HSVhsv(279, 88%, 71%)
CMYKcmyk(30%, 87.8%, 0%, 29.4%)
CIE-LABlab(34.61, 64.27, -60.46)
CIE-LCHlch(34.61, 88.24, 316.75°)
OKLaboklab(46.6% 0.1406 -0.172)
OKLCHoklch(46.6% 0.222 309.3)
XYZxyz(17.1276, 8.3051, 43.8719)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E16B4 #4CB416
analogous
#2F16B4 #7E16B4 #B4169B
triadic
#7E16B4 #B47E16 #16B47E
tetradic
#7E16B4 #B42F16 #4CB416 #169BB4
square
#7E16B4 #B42F16 #4CB416 #169BB4
split-complementary
#7E16B4 #9BB416 #16B42F
monochromatic
#320947 #580F7D #7E16B4 #A223E4 #B95AEB

Accessibility & contrast

On white

7.89
#7E16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E16B4
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E16B4#FFFFFF#000000##FFFFFF
##7E16B41.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#76446A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e16b4;
/* rgb */ color: rgb(126, 22, 180);
/* oklch */ color: oklch(46.6% 0.222 309.3);
Tailwind
colors: {
  custom: {
    50: '#a965cb',
    500: '#7e16b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e16b4;
$custom-light: #a965cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e16b4",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 279.494,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46598,
    "c": 0.2221,
    "h": 309.3
  },
  "luminance": 0.08305
}

Semantic roles & 50–950 ramp

primary
#7E16B4
secondary
#80CE58
accent
#F53375
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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