#7B166F#7B166F

#7B166F is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.165 H 333.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#7B166F
RGBrgb(123, 22, 111)
HSLhsl(307, 70%, 28%)
HSVhsv(307, 82%, 48%)
CMYKcmyk(0%, 82.1%, 9.8%, 51.8%)
CIE-LABlab(29.24, 51.02, -26.61)
CIE-LCHlch(29.24, 57.54, 332.45°)
OKLaboklab(41.2% 0.148 -0.073)
OKLCHoklch(41.2% 0.165 333.7)
XYZxyz(11.3246, 5.9335, 15.5847)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B166F #167B22
analogous
#54167B #7B166F #7B163C
triadic
#7B166F #6F7B16 #166F7B
tetradic
#7B166F #7B5416 #167B22 #163C7B
square
#7B166F #7B5416 #167B22 #163C7B
split-complementary
#7B166F #3C7B16 #167B54
monochromatic
#1A0517 #470D40 #7B166F #AF1F9E #DA31C6

Accessibility & contrast

On white

9.60
#7B166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7B166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B166F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B166F#FFFFFF#000000##FFFFFF
##7B166F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#3B4A6D
Tritanopia (blue-blind)
#812142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b166f;
/* rgb */ color: rgb(123, 22, 111);
/* oklch */ color: oklch(41.2% 0.165 333.7);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7b166f',
    950: '#000000',
  },
}
SCSS
$custom: #7b166f;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7b166f",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 307.129,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41201,
    "c": 0.16502,
    "h": 333.7
  },
  "luminance": 0.05932
}

Semantic roles & 50–950 ramp

primary
#7B166F
secondary
#3DB04A
accent
#EC503B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B166F

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

Preview Lab → · Contrast checker → · Palette generator →

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