#7F166E#7F166E

#7F166E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.166 H 336.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7F166E
RGBrgb(127, 22, 110)
HSLhsl(310, 70%, 29%)
HSVhsv(310, 83%, 50%)
CMYKcmyk(0%, 82.7%, 13.4%, 50.2%)
CIE-LABlab(29.94, 51.78, -24.82)
CIE-LCHlch(29.94, 57.42, 334.39°)
OKLaboklab(41.82% 0.152 -0.0678)
OKLCHoklch(41.82% 0.166 336)
XYZxyz(11.8540, 6.2128, 15.3237)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F166E #167F27
analogous
#5C167F #7F166E #7F163A
triadic
#7F166E #6E7F16 #166E7F
tetradic
#7F166E #7F5C16 #167F27 #163A7F
square
#7F166E #7F5C16 #167F27 #163A7F
split-complementary
#7F166E #3A7F16 #167F5C
monochromatic
#1A0517 #4B0D41 #7F166E #B31F9B #DC34C1

Accessibility & contrast

On white

9.36
#7F166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F166E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F166E#FFFFFF#000000##FFFFFF
##7F166E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D70
Deuteranopia (green-blind)
#3F4C6C
Tritanopia (blue-blind)
#861F42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f166e;
/* rgb */ color: rgb(127, 22, 110);
/* oklch */ color: oklch(41.8% 0.166 336.0);
Tailwind
colors: {
  custom: {
    50: '#a86298',
    500: '#7f166e',
    950: '#000000',
  },
}
SCSS
$custom: #7f166e;
$custom-light: #a86298;
$custom-dark: #000000;
JSON
{
  "hex": "#7f166e",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 309.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41824,
    "c": 0.16647,
    "h": 336
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#7F166E
secondary
#3DB450
accent
#ED573B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F166E

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

Preview Lab → · Contrast checker → · Palette generator →

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