#7E16B3#7E16B3

#7E16B3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.221 H 309.5°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E16B3
RGBrgb(126, 22, 179)
HSLhsl(280, 78%, 39%)
HSVhsv(280, 88%, 70%)
CMYKcmyk(29.6%, 87.7%, 0%, 29.8%)
CIE-LABlab(34.53, 64.06, -60.00)
CIE-LCHlch(34.53, 87.77, 316.88°)
OKLaboklab(46.52% 0.1409 -0.1706)
OKLCHoklch(46.52% 0.221 309.5)
XYZxyz(17.0261, 8.2645, 43.3374)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E16B3 #4BB316
analogous
#3016B3 #7E16B3 #B3169A
triadic
#7E16B3 #B37E16 #16B37E
tetradic
#7E16B3 #B33016 #4BB316 #169AB3
square
#7E16B3 #B33016 #4BB316 #169AB3
split-complementary
#7E16B3 #9AB316 #16B330
monochromatic
#310946 #580F7C #7E16B3 #A322E4 #B959EB

Accessibility & contrast

On white

7.92
#7E16B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E16B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E16B3
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E16B3#FFFFFF#000000##FFFFFF
##7E16B31.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#76446A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e16b3;
/* rgb */ color: rgb(126, 22, 179);
/* oklch */ color: oklch(46.5% 0.221 309.5);
Tailwind
colors: {
  custom: {
    50: '#a965cb',
    500: '#7e16b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e16b3;
$custom-light: #a965cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e16b3",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 179
  },
  "hsl": {
    "h": 279.745,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46515,
    "c": 0.22125,
    "h": 309.5
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#7E16B3
secondary
#7FCE57
accent
#F53374
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E16B3

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

Preview Lab → · Contrast checker → · Palette generator →

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