#7B216C#7B216C

#7B216C is a dark, vivid pink. Relative luminance 0.064; OKLCH L 41.9% C 0.151 H 335.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7B216C
RGBrgb(123, 33, 108)
HSLhsl(310, 58%, 31%)
HSVhsv(310, 73%, 48%)
CMYKcmyk(0%, 73.2%, 12.2%, 51.8%)
CIE-LABlab(30.36, 46.90, -22.94)
CIE-LCHlch(30.36, 52.21, 333.94°)
OKLaboklab(41.95% 0.137 -0.0626)
OKLCHoklch(41.95% 0.151 335.5)
XYZxyz(11.4192, 6.3824, 14.8150)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B216C #217B30
analogous
#5D217B #7B216C #7B213F
triadic
#7B216C #6C7B21 #216C7B
tetradic
#7B216C #7B5D21 #217B30 #213F7B
square
#7B216C #7B5D21 #217B30 #213F7B
split-complementary
#7B216C #3F7B21 #217B5D
monochromatic
#1A0717 #4B1442 #7B216C #AB2E96 #CE48B8

Accessibility & contrast

On white

9.23
#7B216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B216C
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B216C#FFFFFF#000000##FFFFFF
##7B216C1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6E
Deuteranopia (green-blind)
#404C6A
Tritanopia (blue-blind)
#812844
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b216c;
/* rgb */ color: rgb(123, 33, 108);
/* oklch */ color: oklch(41.9% 0.151 335.5);
Tailwind
colors: {
  custom: {
    50: '#a46596',
    500: '#7b216c',
    950: '#000000',
  },
}
SCSS
$custom: #7b216c;
$custom-light: #a46596;
$custom-dark: #000000;
JSON
{
  "hex": "#7b216c",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 310,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41949,
    "c": 0.15063,
    "h": 335.5
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#7B216C
secondary
#4AAE5B
accent
#E16147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B216C

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

Preview Lab → · Contrast checker → · Palette generator →

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