#7F16B4#7F16B4

#7F16B4 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.7% C 0.222 H 309.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F16B4
RGBrgb(127, 22, 180)
HSLhsl(280, 78%, 40%)
HSVhsv(280, 88%, 71%)
CMYKcmyk(29.4%, 87.8%, 0%, 29.4%)
CIE-LABlab(34.77, 64.41, -60.20)
CIE-LCHlch(34.77, 88.17, 316.94°)
OKLaboklab(46.74% 0.1419 -0.1712)
OKLCHoklch(46.74% 0.222 309.7)
XYZxyz(17.2759, 8.3815, 43.8789)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F16B4 #4BB416
analogous
#3016B4 #7F16B4 #B4169A
triadic
#7F16B4 #B47F16 #16B47F
tetradic
#7F16B4 #B43016 #4BB416 #169AB4
square
#7F16B4 #B43016 #4BB416 #169AB4
split-complementary
#7F16B4 #9AB416 #16B430
monochromatic
#320947 #590F7D #7F16B4 #A323E4 #BA5AEB

Accessibility & contrast

On white

7.85
#7F16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F16B4
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F16B4#FFFFFF#000000##FFFFFF
##7F16B41.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f16b4;
/* rgb */ color: rgb(127, 22, 180);
/* oklch */ color: oklch(46.7% 0.222 309.7);
Tailwind
colors: {
  custom: {
    50: '#aa66cb',
    500: '#7f16b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f16b4;
$custom-light: #aa66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f16b4",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 279.873,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46736,
    "c": 0.22236,
    "h": 309.7
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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